summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-03 20:30:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-04 10:23:39 +0000
commit815fd0084aaa6b8c536a13a415cb8cdaf6124ba7 (patch)
tree04a29dc0c058ffff529b6dcfdbcc26937a7f5e78 /vcl
parent382520b436f66ffde850bc215e8d04fe1d93e80e (diff)
Related: tdf#152196 adjustLinearPosX takes a double
Change-Id: I9566904b03b3856dc4092c5d1c15beb35ba7c840 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143622 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/sallayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index be00aaa51a42..5f26dc351316 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -553,7 +553,7 @@ void GenericSalLayout::MoveGlyph( int nStart, DeviceCoordinate nNewXPos )
if( pGlyphIter->IsRTLGlyph() )
nNewXPos += pGlyphIter->newWidth() - pGlyphIter->origWidth();
// calculate the x-offset to the old position
- DeviceCoordinate nXDelta = nNewXPos - pGlyphIter->linearPos().getX() + pGlyphIter->xOffset();
+ double nXDelta = nNewXPos - pGlyphIter->linearPos().getX() + pGlyphIter->xOffset();
// adjust all following glyph positions if needed
if( nXDelta != 0 )
{