[Libreoffice-commits] core.git: vcl/generic

Caolán McNamara caolanm at redhat.com
Mon Jun 24 08:33:53 PDT 2013


 vcl/generic/glyphs/gcach_layout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7ec6baba68aba6a66d161e545f0f7808f57ff011
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 24 16:20:51 2013 +0100

    Resolves: fdo#66042 get the bounds of the current grapheme
    
    Change-Id: I5b1808d74f0a1dd0d8b6ea22136e574c0a6e8e2a

diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index 4826936..0f69e59 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -111,7 +111,7 @@ void ServerFontLayout::setNeedFallback(ImplLayoutArgs& rArgs, sal_Int32 nCharPos
     OUString aRun(rArgs.mpStr);
     sal_Int32 nDone;
     sal_Int32 nGraphemeStartPos =
-        mxBreak->previousCharacters(aRun, nCharPos, aLocale,
+        mxBreak->previousCharacters(aRun, nCharPos+1, aLocale,
             i18n::CharacterIteratorMode::SKIPCELL, 1, nDone);
     sal_Int32 nGraphemeEndPos =
         mxBreak->nextCharacters(aRun, nCharPos, aLocale,


More information about the Libreoffice-commits mailing list