diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index cd24e50ed0..8c987ef135 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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);