diff options
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index d2304e7..09cbc36 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -3539,8 +3539,8 @@ void QVGPaintEngine::drawStaticTextItem(QStaticTextItem *textItem) QVarLengthArray<VGfloat> adjustments_x(numGlyphs); QVarLengthArray<VGfloat> adjustments_y(numGlyphs); for (int i = 1; i < numGlyphs; ++i) { - adjustments_x[i-1] = (positions[i].x - positions[i-1].x).toReal(); - adjustments_y[i-1] = (positions[i].y - positions[i-1].y).toReal(); + adjustments_x[i-1] = (positions[i].x - positions[i-1].x).round().toReal(); + adjustments_y[i-1] = (positions[i].y - positions[i-1].y).round().toReal(); } // Set the glyph drawing origin. |