]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/menu.cpp
use wxVector<T> instead of OBJARRAY macros for wxHtmlTextPieces (slightly better...
[wxWidgets.git] / src / motif / menu.cpp
index be5776e4c086d7ae8bfa4216ea6d0b2951c61293..81ce9a4e004aca87d1445b3130d9ac408051f331 100644 (file)
@@ -236,7 +236,7 @@ void wxMenuBar::SetMenuLabel(size_t pos, const wxString& label)
                       XmNlabelString, label_str(),
                       NULL);
     }
-    m_titles[i] = label;
+    m_titles[pos] = label;
 }
 
 wxString wxMenuBar::GetMenuLabel(size_t pos) const