diff options
Diffstat (limited to 'svgio/source')
-rw-r--r-- | svgio/source/svgreader/svgtextnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgusenode.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgtextnode.cxx b/svgio/source/svgreader/svgtextnode.cxx index aff56aa7f3ea..5498ee0f525b 100644 --- a/svgio/source/svgreader/svgtextnode.cxx +++ b/svgio/source/svgreader/svgtextnode.cxx @@ -221,7 +221,7 @@ namespace svgio::svgreader // SVGTokenTref and SVGTokenTextPath. These increase a given current text position const SvgStyleAttributes* pStyle = getSvgStyleAttributes(); - if(!(pStyle && !getChildren().empty())) + if(!pStyle || getChildren().empty()) return; const double fOpacity(pStyle->getOpacity().getNumber()); diff --git a/svgio/source/svgreader/svgusenode.cxx b/svgio/source/svgreader/svgusenode.cxx index 4d71af3cf527..5096864008b6 100644 --- a/svgio/source/svgreader/svgusenode.cxx +++ b/svgio/source/svgreader/svgusenode.cxx @@ -140,7 +140,7 @@ namespace svgio::svgreader // try to access link to content const SvgNode* pXLink = getDocument().findSvgNodeById(maXLink); - if (!(pXLink && Display_none != pXLink->getDisplay() && !mbDecomposingSvgNode)) + if (!pXLink || Display_none == pXLink->getDisplay() || mbDecomposingSvgNode) return; // decompose children |