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