diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 2f96e67b5e..fde2319d3e 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -808,8 +808,9 @@ bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc) wxDIB dib(image); if ( !dib.IsOk() ) return false; - if (depth == -1) - depth = dib.GetDepth(); // Get depth from image if none specified + + if ( depth == -1 ) + depth = dib.GetDepth(); // Get depth from image if none specified // store the bitmap parameters wxBitmapRefData *refData = new wxBitmapRefData;