Motif and other mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3070,7 +3070,7 @@ void wxWindow::SetForegroundColour(const wxColour& col)
|
||||
ChangeForegroundColour();
|
||||
}
|
||||
|
||||
void wxWindow::ChangeFont()
|
||||
void wxWindow::ChangeFont(bool keepOriginalSize)
|
||||
{
|
||||
// Note that this causes the widget to be resized back
|
||||
// to its original size! We therefore have to set the size
|
||||
@@ -3086,7 +3086,7 @@ void wxWindow::ChangeFont()
|
||||
NULL);
|
||||
|
||||
GetSize(& width1, & height1);
|
||||
if (width != width1 || height != height1)
|
||||
if (keepOriginalSize && (width != width1 || height != height1))
|
||||
{
|
||||
SetSize(-1, -1, width, height);
|
||||
}
|
||||
|
Reference in New Issue
Block a user