Allow retrieving the descent and external leading of empty strings.
[wxWidgets.git] / samples / ribbon / ribbondemo.cpp
index e30b1db9a220a7120a15db094f3e5c65d4e21bb2..7a326c8598e6814ebbf32d6c33805d70ae305710 100644 (file)
@@ -970,7 +970,7 @@ void MyFrame::OnColourGalleryButton(wxCommandEvent& evt)
         gallery->SetSelection(item);
 
         // Send an event to respond to the selection change
-        wxRibbonGalleryEvent dummy(wxEVT_COMMAND_RIBBONGALLERY_SELECTED, gallery->GetId());
+        wxRibbonGalleryEvent dummy(wxEVT_RIBBONGALLERY_SELECTED, gallery->GetId());
         dummy.SetEventObject(gallery);
         dummy.SetGallery(gallery);
         dummy.SetGalleryItem(item);