summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdotextdecomposition.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx
index 76e27768224c..21db5c3da4c0 100644
--- a/svx/source/svdraw/svdotextdecomposition.cxx
+++ b/svx/source/svdraw/svdotextdecomposition.cxx
@@ -1455,7 +1455,6 @@ void SdrTextObj::impDecomposeStretchTextPrimitive(
// timing generators
#define ENDLESS_LOOP (0xffffffff)
#define ENDLESS_TIME (double(0xffffffff))
-#define PIXEL_DPI (96.0)
void SdrTextObj::impGetBlinkTextTiming(drawinglayer::animation::AnimationEntryList& rAnimList) const
{
@@ -1639,12 +1638,12 @@ void SdrTextObj::impGetScrollTextTiming(drawinglayer::animation::AnimationEntryL
fAnimationDelay = 50.0;
}
- if(basegfx::fTools::less(fSingleStepWidth, 0.0))
+ if (fSingleStepWidth < 0.0)
{
- // data is in pixels, convert to logic. Imply PIXEL_DPI dpi.
+ // data is in pixels, convert to logic. Imply 96 dpi.
// It makes no sense to keep the view-transformation centered
// definitions, so get rid of them here.
- fSingleStepWidth = (-fSingleStepWidth * (2540.0 / PIXEL_DPI));
+ fSingleStepWidth = o3tl::convert(-fSingleStepWidth, o3tl::Length::px, o3tl::Length::mm100);
}
if(basegfx::fTools::equalZero(fSingleStepWidth))