Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


+ some simplification

-- 
Regards,
Mariusz Dykerek

diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index f5da206..09ad468 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -2035,17 +2035,9 @@ void SplitWindow::ImplDrawFadeIn( sal_Bool bInPaint )
         Image           aImage;
         ImplGetFadeInRect( aTempRect );
 
-        sal_Bool bLeft;
-        if ( meAlign == WINDOWALIGN_TOP )
-            bLeft   = sal_False;
-        else if ( meAlign == WINDOWALIGN_BOTTOM )
-            bLeft   = sal_True;
-        else if ( meAlign == WINDOWALIGN_LEFT )
-            bLeft   = sal_False;
-        else if ( meAlign == WINDOWALIGN_RIGHT )
-            bLeft   = sal_True;
-        else
-            bLeft   = sal_True;
+        sal_Bool bLeft = sal_True;
+        if ( ( meAlign == WINDOWALIGN_TOP ) || ( meAlign == WINDOWALIGN_LEFT ) )
+            bLeft = sal_False;
 
         if ( !bInPaint )
             Erase( aTempRect );

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.