don't use deprecated wxMenuItem methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-08-15 12:53:59 +00:00
parent ca6328c44e
commit c267759c8f
2 changed files with 2 additions and 2 deletions

View File

@ -1782,7 +1782,7 @@ wxMenuGeometryInfo *wxGTKRenderer::GetMenuGeometry(wxWindow *win,
h = heightText;
wxCoord widthLabel;
dc.GetTextExtent(item->GetLabel(), &widthLabel, NULL);
dc.GetTextExtent(item->GetItemLabelText(), &widthLabel, NULL);
if ( widthLabel > widthLabelMax )
{
widthLabelMax = widthLabel;

View File

@ -2505,7 +2505,7 @@ wxMenuGeometryInfo *wxWin32Renderer::GetMenuGeometry(wxWindow *win,
h = heightText;
wxCoord widthLabel;
dc.GetTextExtent(item->GetLabel(), &widthLabel, NULL);
dc.GetTextExtent(item->GetItemLabelText(), &widthLabel, NULL);
if ( widthLabel > widthLabelMax )
{
widthLabelMax = widthLabel;