summaryrefslogtreecommitdiffstats
path: root/svgio/source/svgreader/svgsvgnode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/source/svgreader/svgsvgnode.cxx')
-rw-r--r--svgio/source/svgreader/svgsvgnode.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgsvgnode.cxx b/svgio/source/svgreader/svgsvgnode.cxx
index 7d2b935b544e..e3c52053a839 100644
--- a/svgio/source/svgreader/svgsvgnode.cxx
+++ b/svgio/source/svgreader/svgsvgnode.cxx
@@ -484,8 +484,8 @@ namespace svgio::svgreader
{
// Svg defines that a negative value is an error and that 0.0 disables rendering
// isPositive() not usable because it allows 0.0 in contrast to mathematical definition of 'positive'
- const bool bWidthInvalid(getWidth().isSet() && basegfx::fTools::lessOrEqual(getWidth().getNumber(), 0.0));
- const bool bHeightInvalid(getHeight().isSet() && basegfx::fTools::lessOrEqual(getHeight().getNumber(), 0.0));
+ const bool bWidthInvalid(getWidth().isSet() && getWidth().getNumber() <= 0.0);
+ const bool bHeightInvalid(getHeight().isSet() && getHeight().getNumber() <= 0.0);
if(!bWidthInvalid && !bHeightInvalid)
{
basegfx::B2DRange aSvgCanvasRange; // viewport