]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing assert
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 14 Apr 2007 11:16:36 +0000 (11:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 14 Apr 2007 11:16:36 +0000 (11:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/metafile.cpp

index a99899b188ea162fd52d3d47a398fc8b1f3354ab..07a905760f481985f76e00efdd3f2a233c85085a 100644 (file)
@@ -215,7 +215,7 @@ wxMetaFileDC::wxMetaFileDC(
     int width, int height,
     const wxString& WXUNUSED(description) )
 {
-    wxASSERT_MSG( width <= 0 || height <= 0, wxT("no arbitration of metafile size supported") );
+    wxASSERT_MSG( width != 0 || height != 0, wxT("no arbitration of metafile size supported") );
     wxASSERT_MSG( filename.empty(), wxT("no file based metafile support yet"));
 
     m_metaFile = new wxMetaFile( filename );