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:
@@ -1782,7 +1782,7 @@ wxMenuGeometryInfo *wxGTKRenderer::GetMenuGeometry(wxWindow *win,
|
|||||||
h = heightText;
|
h = heightText;
|
||||||
|
|
||||||
wxCoord widthLabel;
|
wxCoord widthLabel;
|
||||||
dc.GetTextExtent(item->GetLabel(), &widthLabel, NULL);
|
dc.GetTextExtent(item->GetItemLabelText(), &widthLabel, NULL);
|
||||||
if ( widthLabel > widthLabelMax )
|
if ( widthLabel > widthLabelMax )
|
||||||
{
|
{
|
||||||
widthLabelMax = widthLabel;
|
widthLabelMax = widthLabel;
|
||||||
|
@@ -2505,7 +2505,7 @@ wxMenuGeometryInfo *wxWin32Renderer::GetMenuGeometry(wxWindow *win,
|
|||||||
h = heightText;
|
h = heightText;
|
||||||
|
|
||||||
wxCoord widthLabel;
|
wxCoord widthLabel;
|
||||||
dc.GetTextExtent(item->GetLabel(), &widthLabel, NULL);
|
dc.GetTextExtent(item->GetItemLabelText(), &widthLabel, NULL);
|
||||||
if ( widthLabel > widthLabelMax )
|
if ( widthLabel > widthLabelMax )
|
||||||
{
|
{
|
||||||
widthLabelMax = widthLabel;
|
widthLabelMax = widthLabel;
|
||||||
|
Reference in New Issue
Block a user