]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/toolbar.cpp
Fix another crash when conversion fails in Unix PostScript code.
[wxWidgets.git] / src / univ / toolbar.cpp
index 44c188fba3711c97394b28ef6e9a7fc789bda4b7..99ac23927130572e5fe65b3391b6b41706d3d731 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Robert Roebling, Vadim Zeitlin (universalization)
 // Modified by:
 // Created:     20.02.02
-// Id:          $Id$
 // Copyright:   (c) 2001 Robert Roebling,
 //              (c) 2002 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
@@ -292,7 +291,7 @@ void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable)
 {
 #if wxUSE_IMAGE
     // created disabled-state bitmap on demand
-    if ( !enable && !tool->GetDisabledBitmap().Ok() )
+    if ( !enable && !tool->GetDisabledBitmap().IsOk() )
     {
         wxImage image(tool->GetNormalBitmap().ConvertToImage());