summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-26 16:05:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-27 10:41:42 +0200
commit4b608064ef1af9e3ded464670832fa4de0ed75a8 (patch)
tree1b0dc0c0de2a31b0ed88b4e5513a03db636624ed /editeng
parentc2fab664a887b16cb78570851ceffcacd26815f7 (diff)
ofz#24932 Timeout
Change-Id: I8eff4cee1ba06c7ad69cb6ec8e483a84cfd3a347 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133451 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/rtf/rtfitem.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index 36e9bd16836e..bd75fe465567 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -1114,6 +1114,16 @@ ATTR_SETEMPHASIS:
}
break;
+ // We expect these to be preceeded by a RTF_HYPHEN and
+ // so normally are handled by the RTF_HYPHEN case, but
+ // if they appear 'bare' in a document then safely skip
+ // them here
+ case RTF_HYPHLEAD:
+ case RTF_HYPHTRAIL:
+ case RTF_HYPHMAX:
+ SkipGroup();
+ break;
+
case RTF_SHADOW:
{
bool bSkip = true;