diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-02 21:04:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-03 09:48:44 +0200 |
commit | 86a006d8266850a9fda1e5d94d2f6cb821a0724e (patch) | |
tree | 8a4435b87933befc25eadab7820103f2c1eeb343 | |
parent | 4e1cf8411197b4c11a6c5d4728e047e6d46567b5 (diff) |
ofz#24932 Timeout
Change-Id: I1055c5b7db23693817221fe213ab96c9f29a11f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133734
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | editeng/source/editeng/eertfpar.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx index 7a8b93fbc78d..a5737b4c923a 100644 --- a/editeng/source/editeng/eertfpar.cxx +++ b/editeng/source/editeng/eertfpar.cxx @@ -31,6 +31,7 @@ #include <svtools/rtftoken.h> #include <svtools/htmltokn.h> +#include <unotools/configmgr.hxx> using namespace com::sun::star; @@ -336,7 +337,13 @@ void EditRTFParser::SetAttrInDoc( SvxRTFItemStackType &rSet ) { nEsc *= 10; //HalfPoints => Twips was embezzled in RTFITEM.CXX! SvxFont aFont; - mpEditEngine->SeekCursor(aStartPaM.GetNode(), aStartPaM.GetIndex()+1, aFont); + if (utl::ConfigManager::IsFuzzing()) + { + // ofz#24932 detecting RTL vs LTR is slow + aFont = aStartPaM.GetNode()->GetCharAttribs().GetDefFont(); + } + else + mpEditEngine->SeekCursor(aStartPaM.GetNode(), aStartPaM.GetIndex()+1, aFont); nEscFontHeight = aFont.GetFontSize().Height(); } if (nEscFontHeight) |