summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-26 21:19:00 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-28 12:17:06 +0200
commit10464b74097f114bb73e6e4aaece7aebc43ed680 (patch)
tree7966ec0bba834630aa5b7d3863130e30ffee79d1 /vcl
parent6e5ff9c5966b70becb4121c600859a580af1b7dc (diff)
cid#1607037 silence Overflowed constant
and cid#1606925 Overflowed constant cid#1606695 Overflowed constant Change-Id: I2162e9b5da1f31ea1dfc603d6e60b96d98f82be1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172509 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 855a5355c59d..0602ecca3fc8 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -929,8 +929,8 @@ void GenericSalLayout::ApplyJustificationData(const JustificationData& rstJustif
// Adjust the X position of the rest of the glyphs in the cluster.
// We iterate backwards since this is an RTL glyph.
- for (int j = i - 1; j >= 0 && m_GlyphItems[j].IsInCluster(); j--)
- m_GlyphItems[j].adjustLinearPosX(nDelta + nDiff);
+ for (size_t j = i; j >= 1 && m_GlyphItems[j - 1].IsInCluster(); --j)
+ m_GlyphItems[j - 1].adjustLinearPosX(nDelta + nDiff);
// This is a Kashida insertion position, mark it. Kashida glyphs
// will be inserted below.