Related: tdf#152196 adjustLinearPosX takes a double

Change-Id: I5e32c82b37af3900642199e0af74bf8b48218c2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143623
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index 5a3a253..3549675 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -132,7 +132,7 @@ public:

private:
    // for glyph+font+script fallback
    void            MoveGlyph(int nStart, DeviceCoordinate nNewXPos);
    void            MoveGlyph(int nStart, double nNewXPos);
    void            DropGlyph(int nStart);
    void            Simplify(bool bIsBase);

diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 5f26dc3..2d5a332 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -539,7 +539,7 @@ bool GenericSalLayout::GetNextGlyph(const GlyphItem** pGlyph,
    return true;
}

void GenericSalLayout::MoveGlyph( int nStart, DeviceCoordinate nNewXPos )
void GenericSalLayout::MoveGlyph(int nStart, double nNewXPos)
{
    if( nStart >= static_cast<int>(m_GlyphItems.size()) )
        return;