diff options
author | David Tardon <dtardon@redhat.com> | 2020-06-12 16:22:22 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-13 15:14:21 +0200 |
commit | 42de309f6dd71811f1aaeea1c3753065b57cfa06 (patch) | |
tree | 2a502d2509b3289a4597197629a7be17bfacf730 /lotuswordpro | |
parent | 2274c20b25b51473c4c87bc6baee135c296c00eb (diff) |
cast to the right type
This makes paragraph formatting in LWP documents work again (for the
first time since 3.3).
Regression from commit d2a1c2d4cfa51b6ee8a7f38baa258633fae9ec6d
"fix what there is to fix"
Change-Id: I057aeb996837f7c19815de8a5379861ce3c0e8cd
(cherry picked from commit 12cb753350f429e39064365b05926a30a008a516)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96235
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx index f59c41827b22..3c887fdb8387 100644 --- a/lotuswordpro/source/filter/lwpdoc.cxx +++ b/lotuswordpro/source/filter/lwpdoc.cxx @@ -245,7 +245,7 @@ void LwpDocument::RegisterTextStyles() throw std::runtime_error("loop in register text style"); pParaStyle->SetFoundry(m_xOwnedFoundry.get()); pParaStyle->RegisterStyle(); - pParaStyle = dynamic_cast<LwpParaStyle*>(pParaStyle->GetNext().obj().get()); + pParaStyle = dynamic_cast<LwpTextStyle*>(pParaStyle->GetNext().obj().get()); } } ChangeStyleName();//for click here block |