]> git.saurik.com Git - wxWidgets.git/commitdiff
oops... compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Nov 2000 14:16:39 +0000 (14:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Nov 2000 14:16:39 +0000 (14:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/layout.cpp

index 3b9ec73f6f6546d6f2f20622e33314c3af5346af..8dbb8ea8dc5e93601ff196e31f90c85df0b784d5 100644 (file)
@@ -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