lotuswordpro/source/filter/lwpdoc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 42de309f6dd71811f1aaeea1c3753065b57cfa06
Author:     David Tardon <[email protected]>
AuthorDate: Fri Jun 12 16:22:22 2020 +0200
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Jun 13 15:14:21 2020 +0200

    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 <[email protected]>

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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to