]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/icon.cpp
document On{Open,Save}Document()
[wxWidgets.git] / src / mac / carbon / icon.cpp
index a19042a3e5a38a28bca2302bba72cabde8e2ad75..c90a0b37c71faa78865d2075c08912042c270c60 100644 (file)
@@ -220,7 +220,11 @@ bool wxIcon::LoadFile(
                     HLock((Handle) iconFamily);
                     OSStatus err = GetIconRefFromIconFamilyPtr( *iconFamily, GetHandleSize((Handle) iconFamily), &iconRef );
                     HUnlock((Handle) iconFamily);
-                    wxASSERT_MSG( err == noErr , wxT("Error when constructing icon ref") );
+                    if ( err != noErr )
+                    {
+                        wxFAIL_MSG("Error when constructing icon ref");
+                    }
+
                     ReleaseResource( resHandle ) ;
                 }
               }