]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gdiimage.cpp
reset m_selectionOld when the selection is programatically changed
[wxWidgets.git] / src / msw / gdiimage.cpp
index cba81891160a319f02caeacba742e46ec378df8f..eafa9af40fc1fd3afd6847c25069a03a63090fba 100644 (file)
@@ -648,7 +648,7 @@ HBITMAP wxLoadBMP(const wxString& filename)
       pBmpInfo->bmiHeader.biClrUsed : 1 << pBmpInfo->bmiHeader.biBitCount;
     if (nColors < 1
       || file.Read(pBmpInfo->bmiColors, nColors * sizeof(RGBQUAD))
-        == (off_t)(nColors * sizeof(RGBQUAD))) {
+        == (ssize_t)(nColors * sizeof(RGBQUAD))) {
 
       // So how big the bitmap surface is.
       int nBitsSize = BmpFileHdr.bfSize - BmpFileHdr.bfOffBits;