]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
fixed memory leak in RestoreState
[wxWidgets.git] / src / common / menucmn.cpp
index fa0bfec3d72499d42a46bdcbe3455099e9decc3a..edceb72cc52c0e9a4e5819276ef2f508f6ddde59 100644 (file)
@@ -848,7 +848,7 @@ void wxMenuBarBase::SetLabelTop(size_t pos, const wxString& label)
 
 wxString wxMenuBarBase::GetLabelTop(size_t pos) const
 {
-    return GetMenuLabel(pos);
+    return GetMenuLabelText(pos);
 }
 #endif