diff options
-rw-r--r-- | vcl/source/gdi/CommonSalLayout.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx index 9002d76a7c62..ddb3986b277d 100644 --- a/vcl/source/gdi/CommonSalLayout.cxx +++ b/vcl/source/gdi/CommonSalLayout.cxx @@ -945,8 +945,9 @@ void CommonSalLayout::ApplyDXArray(ImplLayoutArgs& rArgs) // Adjust the X position of all glyphs in the cluster. size_t j = i; - while (j-- > 0) + while (j > 0) { + --j; if (!m_GlyphItems[j].IsInCluster()) break; m_GlyphItems[j].maLinearPos.AdjustX(nDelta + nDiff); |