From cea9ca3b77ef7f8f11c3eae0786986028161301c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 27 Nov 2022 16:23:10 +0000 Subject: cid#982469 Unchecked dynamic_cast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I48904acdd34d7b546a8099f265693e2d46c5d2aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143347 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sdext/source/pdfimport/tree/drawtreevisiting.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdext/source') 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. -- cgit