diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-13 17:25:32 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-13 17:27:55 +0400 |
commit | 7fbab3fc351212cd8474159391bc744cee2d7e68 (patch) | |
tree | 893420a39aca6ed59283814a56472bb4a0e3315c /svtools/source/control | |
parent | cc2d0811c25c6a54a952555a1a44bdb9c267c9d0 (diff) |
remove duplicate code, thanks to Petr Mladek for spotting
Change-Id: I136dc9e314197ac100f1f0d12d1f485dc659af9f
Diffstat (limited to 'svtools/source/control')
-rw-r--r-- | svtools/source/control/ruler.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index d7f4e79ff8c2..7e17e6dcb7ee 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 ) |