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:
parent
ca6328c44e
commit
c267759c8f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user