summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-08-19 18:34:00 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2024-08-19 20:57:36 +0200
commit0b67a633bb6f109bce93b330fb3bbf3972ea40be (patch)
tree93a72e5af143d82796773acf28f72fccd15cacda /vcl/source
parent52ca0dd6ccdda4df3860d8b9e24f2f5eedd9a482 (diff)
Don't fix already correct data
Change-Id: I3e9798507cb9ed04797449e790078e5c2809a1ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171989 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/outdev/text.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 8bbd12160bd1..d1528fb68101 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -556,7 +556,7 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr,
{
assert(!is_double_buffered_window());
- if( (nLen < 0) || (nIndex + nLen >= rStr.getLength()))
+ if( (nLen < 0) || (nIndex + nLen > rStr.getLength()))
{
nLen = rStr.getLength() - nIndex;
}