From 6e50d0eb2f6f9f7bbdd3ab2d15c5b36d585546c4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 26 Nov 2000 14:16:39 +0000 Subject: [PATCH] oops... compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/layout.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.45.2