Writer : Undo problem(Japanese IME)
TANAKA H&Y
auau at kne.biglobe.ne.jp
Thu Dec 18 03:26:20 PST 2014
Hello,
The bug is in the Writer (Windows7 64bit).
1. After the English input, I was a Japanese input.
2. I have run several times Undo.
3. Then, Writer was hung up.
I was confirmed to work correctly when applying the following patch.
diff --git a/sw/source/core/bastyp/breakit.cxx
b/sw/source/core/bastyp/breakit.cxx
index bf468b9..55f3dec 100644
--- a/sw/source/core/bastyp/breakit.cxx
+++ b/sw/source/core/bastyp/breakit.cxx
@@ -191,8 +191,11 @@ sal_Int32 SwBreakIt::getGraphemeCount(const
OUString& rText,
else
{
sal_Int32 nCount2 = 1;
+ sal_Int32 nPosOld = nCurPos;
nCurPos = xBreak->nextCharacters(rText, nCurPos,
lang::Locale(),
i18n::CharacterIteratorMode::SKIPCELL, nCount2, nCount2);
+ if (nPosOld == nCurPos)
+ break;
}
++nGraphemeCount;
}
Best regards,
TANAKA Hidemune
More information about the LibreOffice
mailing list