]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
IsTopLevel() may return true not only for wxTLW: this fixes crash when opening a...
[wxWidgets.git] / src / msw / dc.cpp
index ea8b0d55c014dbf1d2034fd872c5683dd0db5461..619844b2ec16debff6a2c30c025fe166afdf2b53 100644 (file)
@@ -1766,15 +1766,13 @@ void wxDC::SetUserScale(double x, double y)
 {
     WXMICROWIN_CHECK_HDC
 
-#ifndef __WXWINCE__
     if ( x == m_userScaleX && y == m_userScaleY )
         return;
 
     m_userScaleX = x;
     m_userScaleY = y;
 
-    SetMapMode(m_mappingMode);
-#endif
+    this->SetMapMode(m_mappingMode);
 }
 
 void wxDC::SetAxisOrientation(bool xLeftRight, bool yBottomUp)