X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e00f54113a7d86b94a839b0f4c1a2fca54a3001..8cbc39e803460d493c2783c4474123a3b1817c03:/src/common/layout.cpp diff --git a/src/common/layout.cpp b/src/common/layout.cpp index 3b9ec73f6f..8dbb8ea8dc 100644 --- a/src/common/layout.cpp +++ b/src/common/layout.cpp @@ -72,7 +72,7 @@ void wxIndividualLayoutConstraint::Set(wxRelationship rel, wxWindowBase *otherW, if ( rel == wxPercentOf ) { - percentage = val; + percent = val; } else { @@ -121,7 +121,8 @@ void wxIndividualLayoutConstraint::PercentOf(wxWindowBase *otherW, wxEdge wh, in // void wxIndividualLayoutConstraint::Absolute(int val) { - value = val; relationship = wxAbsolute; + value = val; + relationship = wxAbsolute; } // Reset constraint if it mentions otherWin @@ -138,8 +139,8 @@ bool wxIndividualLayoutConstraint::ResetIfWin(wxWindowBase *otherW) otherWin = (wxWindowBase *) NULL; return TRUE; } - else - return FALSE; + + return FALSE; } // Try to satisfy constraint