]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_menu.cpp
Applied patch [ 735588 ] Gtk2 textctrl selection fix
[wxWidgets.git] / src / xrc / xh_menu.cpp
index 08d5dc4d210cfb2b6afbb29bb82605684f19812e..8c1e79c962c0f05c4bd05f32794cda8c64975b56 100644 (file)
@@ -85,9 +85,9 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
             wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
                                                GetText(wxT("help")), kind);
                                                
-#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
-                if (HasParam(wxT("bitmap")))
-                    mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
+#if wxCHECK_VERSION(2,3,0) || (defined(__WXMSW__) && wxUSE_OWNER_DRAWN)
+            if (HasParam(wxT("bitmap")))
+                mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
 #endif
             p_menu->Append(mitem);
             mitem->Enable(GetBool(wxT("enabled"), TRUE));