diff options
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 307c31b51863..a506345821c3 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -2572,19 +2572,6 @@ void SvxRuler::Click() } } -bool SvxRuler::CalcLimits ( long& nMax1, // minimum value to be set - long& nMax2, // minimum value to be set - bool ) -{ - /* - Default implementation of the virtual function; the application can be - overridden to implement customized limits. The values are based on the page. - */ - nMax1 = LONG_MIN; - nMax2 = LONG_MAX; - return false; -} - void SvxRuler::CalcMinMax() { /* @@ -2966,19 +2953,8 @@ void SvxRuler::CalcMinMax() // ObjectItem else { - if(mxObjectItem->HasLimits()) - { - if(CalcLimits(nMaxLeft, nMaxRight, (nIdx & 1) == 0)) - { - nMaxLeft = ConvertPosPixel(nMaxLeft); - nMaxRight = ConvertPosPixel(nMaxRight); - } - } - else - { - nMaxLeft = LONG_MIN; - nMaxRight = LONG_MAX; - } + nMaxLeft = LONG_MIN; + nMaxRight = LONG_MAX; } break; } |