]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/dc.h
test whether pointer is non-NULL before using it, not after, in wxAnimation::Load...
[wxWidgets.git] / include / wx / mgl / dc.h
index 9380185c92b1277f98c74e0ee2c0a8e532327b96..eafae450541d68ff897e19ec389119b2cc16bc1d 100644 (file)
@@ -113,7 +113,7 @@ public:
     }
     wxCoord YDEV2LOGREL(wxCoord y) const
     {
-        return wxCoordRound((double)(y) / m_scaleY);
+        return wxRound((double)(y) / m_scaleY);
     }
     wxCoord XLOG2DEV(wxCoord x) const
     {