sdext/source/pdfimport/tree/drawtreevisiting.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cea9ca3b77ef7f8f11c3eae0786986028161301c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Nov 27 16:23:10 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Nov 27 20:14:07 2022 +0100

    cid#982469 Unchecked dynamic_cast
    
    Change-Id: I48904acdd34d7b546a8099f265693e2d46c5d2aa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143347
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx 
b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 2356ddc254c4..2e56bb449662 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -706,7 +706,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& 
rParent)
                     )
                 {
                     pCur->updateGeometryWith( pNext );
-                    if (pPara->bRtl)
+                    if (pPara && pPara->bRtl)
                     {
                         // Tdf#152083: If RTL, reverse the text in pNext so 
that its correct order is
                         // restored when the combined text is reversed in 
DrawXmlEmitter::visit.

Reply via email to