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:
Vadim Zeitlin
2003-01-14 23:47:12 +00:00
parent 5553c7cfe0
commit 6a629e51df
2 changed files with 5 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ wxMSW:
- wxCheckListBox::Check() doesn't send CHECKLISTBOX_TOGGLE event any more
- fixed bug with wxTR_EDIT_LABELS not workign with wxTR_MULTIPLE
- fixes for compilation with OpenWatcom compiler
- fixed wxStaticText best size calculation (was wrong by '&' width)
OLD CHANGES
===========

View File

@@ -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;
}
}