[Libreoffice-commits] .: svtools/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Mon Aug 13 06:28:33 PDT 2012


 svtools/source/control/ruler.cxx |   12 ------------
 1 file changed, 12 deletions(-)

New commits:
commit 7fbab3fc351212cd8474159391bc744cee2d7e68
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Mon Aug 13 17:25:32 2012 +0400

    remove duplicate code, thanks to Petr Mladek for spotting
    
    Change-Id: I136dc9e314197ac100f1f0d12d1f485dc659af9f

diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index d7f4e79..7e17e6d 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2120,18 +2120,6 @@ void Ruler::Resize()
             mbCalc = sal_True;
     }
 
-    // Wenn Ruler eine Groesse hat, dann Groesse vom VirtualDevice setzen
-    if ( (mnVirWidth > RULER_MIN_SIZE) ||
-         ((aWinSize.Width() > RULER_MIN_SIZE) && (aWinSize.Height() > RULER_MIN_SIZE)) )
-    {
-        if ( mnWinStyle & WB_HORZ )
-            mnVirWidth = aWinSize.Width()-mnVirOff;
-        else
-            mnVirWidth = aWinSize.Height()-mnVirOff;
-        if ( mnVirWidth < RULER_MIN_SIZE )
-            mnVirWidth = 0;
-    }
-
     // Gegebenenfalls ein Teil vom Rand loeschen, da 3D-Effekt/Trennlinie am
     // Fensterrand
     if ( bVisible )


More information about the Libreoffice-commits mailing list