こんにちは。田中です。
http://ask.libreoffice.org/ja/question/41898/writerwinban-gahurizusuru/
Win版のWiterで、フリーズする問題に対処しました。
以下のパッチの通りです。
ループの箇所で無限ループに陥っていたので、
カーソル位置が変わっていなかったら抜けるようにしました。
環境によっては無駄な処理ですが、i18nの実装に依存せず、文脈的にも正しいと
思います。
これはbugzillaに起票されている不具合でしょうか?
パッチの投げ方がまだ分かっていません。
すみませんがご教示願います。
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;
}
--
■□■□■□■□■□■□■□■□■□■□■□■
株式会社 田中コンピューターサービス
代表取締役 田中 秀宗
TANAKA Hidemune
本 社 東京都北区滝野川7丁目45番14号
電 話 03-3576-7272
FAX 03-3576-7272
携 帯 090-6187-1418
E-Mail [email protected]
http://tanaka-cs.co.jp
■□■□■□■□■□■□■□■□■□■□■□■
--
Unsubscribe instructions: E-mail to [email protected]
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/ja/discuss/
All messages sent to this list will be publicly archived and cannot be deleted