summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2020-06-12 16:22:22 +0200
committerDavid Tardon <dtardon@redhat.com>2020-06-12 19:02:29 +0200
commit12cb753350f429e39064365b05926a30a008a516 (patch)
tree67ebf63dd056bba62a0d0f78816e106508f7dffe /lotuswordpro
parentde1b634a151c198584dc152676183f519c50a2da (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
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx
index df248a5757e7..8aab1b5fb68e 100644
--- a/lotuswordpro/source/filter/lwpdoc.cxx
+++ b/lotuswordpro/source/filter/lwpdoc.cxx
@@ -243,7 +243,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