improved backwards compatibility when a wxGauge is (incorrectly) created without wxGA_HORIZONTAL style flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -171,10 +171,10 @@ wxSize wxGauge95::DoGetBestSize() const
|
|||||||
{
|
{
|
||||||
// VZ: no idea where does 28 come from, it was there before my changes and
|
// VZ: no idea where does 28 come from, it was there before my changes and
|
||||||
// as nobody ever complained I guess we can leave it...
|
// as nobody ever complained I guess we can leave it...
|
||||||
if (HasFlag(wxGA_HORIZONTAL))
|
if (HasFlag(wxGA_VERTICAL))
|
||||||
return wxSize(100, 28);
|
return wxSize(28, 100);
|
||||||
else
|
else
|
||||||
return wxSize(28,100);
|
return wxSize(100, 28);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user