diff options
author | Daniel Arato (NISZ) <arato.daniel@nisz.hu> | 2021-02-26 09:28:51 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-03-01 15:32:49 +0100 |
commit | 027cc8c90badd4dd8a3436d859587c1b8732459f (patch) | |
tree | de265a75080c69826e19b3e9a9dc133e056b02d7 /writerfilter/source | |
parent | dd5fe1b7602e0b772b3ddc188eb4d1fdfcd519cb (diff) |
tdf#140668 Crashfix: disregard w:textDirection tag outside frame
DomainMapper_Impl::SetFrameDirection had a false assumption that
a w:textDirection tag will only be encountered when the OOXML
parser is already inside a frame. This is not always the case.
Regression from commit af4e5ee0f93c1ff442d08caed5c875f2b2c1fd43
(tdf#97128 DOCX import: fix frame direction).
Change-Id: I39845599b0c7f502870e2de497df8cbdd4475594
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111594
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index 581d2dba6692..4a654822fb90 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -986,8 +986,7 @@ public: m_bFrameDirectionSet = false; } void SetFrameDirection(sal_Int16 nDirection) { - if (!m_bFrameDirectionSet) { - assert(!m_aFrameDirectionQueue.empty()); + if (!m_bFrameDirectionSet && !m_aFrameDirectionQueue.empty()) { m_aFrameDirectionQueue.back() = nDirection; m_bFrameDirectionSet = true; } |