diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-20 12:28:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-20 14:50:29 +0200 |
commit | e37cb88b51e3ab0da687278b3c846140b507e00b (patch) | |
tree | f187e947044cfa28277941213a84152776bf32c5 /editeng/source | |
parent | 4e17fc21bf59d4dbd80de6a569172406c8f86a1c (diff) |
ofz#51471 Timeout
Change-Id: I2ffdb9f439f61fc46f3a3e7176a0451904e8f2cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140238
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 1 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 5 |
2 files changed, 4 insertions, 2 deletions
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 ); |