diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-11-27 16:23:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-11-27 20:14:07 +0100 |
commit | cea9ca3b77ef7f8f11c3eae0786986028161301c (patch) | |
tree | 4578013882b7de50ebec44e0211c98b3dd10fb2b /sdext/source | |
parent | 0deb57a1e8d5e85a364fdb5678b46f6fdd7d345b (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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. |