summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-30 09:17:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-01-30 16:19:56 +0100
commit7c46d7f2556aa726d531d8afca7c181ba430900b (patch)
treee33862a58070e37336cd4f3814b32d1202c4029a /drawinglayer
parent01f59d11df3d08c00bb53c093f16b924b7fdd1d9 (diff)
ofz#5822 Divide-by-zero
Change-Id: Ibfffd57f74b579f869115ad961aa2ec9b35faca3 Reviewed-on: https://gerrit.libreoffice.org/48889 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/textprimitive2d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx
index adc0ecaad385..d155e75c46cc 100644
--- a/drawinglayer/source/primitive2d/textprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx
@@ -95,7 +95,7 @@ namespace drawinglayer
// if decomposition returns false, create no geometry since e.g. scaling may
// be zero
- if(getTextTransform().decompose(aScale, aTranslate, fRotate, fShearX))
+ if (getTextTransform().decompose(aScale, aTranslate, fRotate, fShearX) && aScale.getX() != 0.0)
{
// handle special case: If scale is negative in (x,y) (3rd quadrant), it can
// be expressed as rotation by PI