editeng/source/editeng/impedit.hxx | 1 + editeng/source/editeng/impedit2.cxx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-)
New commits: commit e37cb88b51e3ab0da687278b3c846140b507e00b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Sep 20 12:28:57 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Sep 20 14:50:29 2022 +0200 ofz#51471 Timeout Change-Id: I2ffdb9f439f61fc46f3a3e7176a0451904e8f2cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140238 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index d11ee008c135..b761e3bc4135 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -605,6 +605,7 @@ private: bool mbLastTryMerge:1; bool mbReplaceLeadingSingleQuotationMark:1; bool mbSkipOutsideFormat:1; + bool mbFuzzing:1; bool mbNbspRunNext; // can't be a bitfield as it is passed as bool& diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 3f655c10bc8e..19b6c72e0536 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -124,6 +124,7 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) : mbLastTryMerge(false), mbReplaceLeadingSingleQuotationMark(true), mbSkipOutsideFormat(false), + mbFuzzing(utl::ConfigManager::IsFuzzing()), mbNbspRunNext(false) { aStatus.GetControlWord() = EEControlBits::USECHARATTRIBS | EEControlBits::DOIDLEFORMAT | @@ -1948,7 +1949,7 @@ void ImpEditEngine::InitWritingDirections( sal_Int32 nPara ) WritingDirectionInfos& rInfos = pParaPortion->aWritingDirectionInfos; rInfos.clear(); - if (pParaPortion->GetNode()->Len()) + if (pParaPortion->GetNode()->Len() && !mbFuzzing) { const OUString aText = pParaPortion->GetNode()->GetString(); @@ -2722,7 +2723,7 @@ EditPaM ImpEditEngine::ImpInsertText(const EditSelection& aCurSel, const OUStrin aCurWord = SelectWord( aCurPaM, i18n::WordType::DICTIONARY_WORD ); OUString aText(convertLineEnd(rStr, LINEEND_LF)); - if (utl::ConfigManager::IsFuzzing()) //tab expansion performance in editeng is appalling + if (mbFuzzing) //tab expansion performance in editeng is appalling aText = aText.replaceAll("\t","-"); SfxVoidItem aTabItem( EE_FEATURE_TAB );