diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-23 22:59:31 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-23 23:00:48 +0200 |
commit | 0153ea7e11e5e67d272dfb3630e3ea7cc4d99df9 (patch) | |
tree | 82c6865095e4ab57d2c122c3e0b75e8e0d52b3ad /svx | |
parent | 038d162b175b62d67a94d4418b3a15a1a382419d (diff) |
Fix compiler errors and warnings..
Change-Id: Id35cdec02c7a5175e1b429b723679541292ddfb3
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index ff87c51a213d..d5ab9437b6c6 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -436,10 +436,10 @@ SvxRuler::~SvxRuler() void SvxRuler::NormalizePosition(long& rValue) const { - long aNewPositionLogic = pEditWin->PixelToLogic(Size(0, rValue), GetMapMode()).Height(); + long aNewPositionLogic = pEditWin->PixelToLogic(Size(0, rValue), GetCurrentMapMode()).Height(); long aTickDivider = GetCurrentRulerUnit().nTick1; aNewPositionLogic = (aNewPositionLogic / aTickDivider) * aTickDivider; - rValue = pEditWin->LogicToPixel(Size(0, aNewPositionLogic), GetMapMode()).Height(); + rValue = pEditWin->LogicToPixel(Size(0, aNewPositionLogic), GetCurrentMapMode()).Height(); } long SvxRuler::ConvertHPosPixel(long nVal) const |