]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/gdiobj.cpp
use GetFont() instead of (possibly not initialized) m_font in GetCharWidth/Height()
[wxWidgets.git] / src / mgl / gdiobj.cpp
index add0f6c1e972f0e755e9efacfe20805bf9c9621f..62ec4bf06d5a51f16ae3f12279d4b8b4ad033f22 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "gdiobj.h"
 #endif