Fix for when Set is called with wxSameAs to behave just like calling SameAs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -66,6 +66,14 @@ wxIndividualLayoutConstraint::~wxIndividualLayoutConstraint()
|
||||
|
||||
void wxIndividualLayoutConstraint::Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val, int marg)
|
||||
{
|
||||
if (rel == wxSameAs)
|
||||
{
|
||||
// If Set is called by the user with wxSameAs then call SameAs to do
|
||||
// it since it will actually use wxPercent instead.
|
||||
SameAs(otherW, otherE, marg);
|
||||
return;
|
||||
}
|
||||
|
||||
relationship = rel;
|
||||
otherWin = otherW;
|
||||
otherEdge = otherE;
|
||||
|
Reference in New Issue
Block a user