]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
Fixed test for button style - styles contain other style bits
[wxWidgets.git] / src / msw / dcprint.cpp
index bbfd69e35880025e06e989ff08d2345f8797dffb..5c90a1f9e5c5105838de40833ffb7b117f5cef1f 100644 (file)
@@ -275,7 +275,7 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
         GlobalFree(pd.hDevMode);
         pd.hDevMode=NULL;
     }
-    return ( deviceName != wxEmptyString );
+    return ( !deviceName.empty() );
 }
 
 // Gets an HDC for the specified printer configuration