Kaydet (Commit) 7fbab3fc authored tarafından Ivan Timofeev's avatar Ivan Timofeev

remove duplicate code, thanks to Petr Mladek for spotting

Change-Id: I136dc9e314197ac100f1f0d12d1f485dc659af9f
üst cc2d0811
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment