Fix copy/paste error in UnsetConstraints().
"top" was mistakenly used in the code dealing with "left" constraint. Thanks to Coverity for finding this one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2263,7 +2263,7 @@ void wxWindowBase::UnsetConstraints(wxLayoutConstraints *c)
|
||||
{
|
||||
if ( c )
|
||||
{
|
||||
if ( c->left.GetOtherWindow() && (c->top.GetOtherWindow() != this) )
|
||||
if ( c->left.GetOtherWindow() && (c->left.GetOtherWindow() != this) )
|
||||
c->left.GetOtherWindow()->RemoveConstraintReference(this);
|
||||
if ( c->top.GetOtherWindow() && (c->top.GetOtherWindow() != this) )
|
||||
c->top.GetOtherWindow()->RemoveConstraintReference(this);
|
||||
|
Reference in New Issue
Block a user