diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-04-01 13:01:14 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-04-02 11:50:00 +0000 |
commit | d5b3e74e50a2616c85d1955f59e55bb4edba32dd (patch) | |
tree | 99f78248fb5ecbfe6bcec9f291346e04d0f3d5a0 | |
parent | f85db6b7999d8d4f9f54a0699b73641934d7e441 (diff) |
fdo#74302: Adapt to OUString changes and set length exactly.
This was fixed in master by 4c539fac018dfd44cd8db52161a8cb930c627da7
Change-Id: I69219e643f5eff3126191220ce2b1d0e1089a93e
Reviewed-on: https://gerrit.libreoffice.org/8808
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | vcl/source/gdi/outdev3.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index d97b71be079e..537f8aad2ed2 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -5399,6 +5399,9 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr, OUStringToOString( rStr, RTL_TEXTENCODING_UTF8 ).getStr() ); #endif + if( nLen == STRING_LEN ) + nLen = rStr.getLength() - nIndex; + if ( mpMetaFile ) mpMetaFile->AddAction( new MetaTextAction( rStartPt, rStr, nIndex, nLen ) ); if( pVector ) |