fixed wxStaticText best size calculation (closes bug 667324)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -106,7 +106,10 @@ wxSize wxStaticText::DoGetBestSize() const
|
||||
}
|
||||
}
|
||||
else {
|
||||
curLine += *pc;
|
||||
// we shouldn't take into account the '&' which just introduce the
|
||||
// mnemonic characters and so are not shown on the screen
|
||||
if ( pc != _T('&') )
|
||||
curLine += *pc;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user