summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2018-01-09 16:08:27 +0100
committerDavid Tardon <dtardon@redhat.com>2018-01-09 16:08:27 +0100
commit9c252a30064a7968b8e548db46cfa8018d4876c1 (patch)
tree8a3b0eda3999fc75d49b2eb5c1dcf3b355d7888f
parent4c2c68c098865d96f2568cda9f22584f56d033ea (diff)
ofz#4903 avoid division by 0
Change-Id: I6322d2093e3f4646a238f68ad9beff9a6a6448d0
-rw-r--r--src/lib/MSPUBCollector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/MSPUBCollector.cpp b/src/lib/MSPUBCollector.cpp
index 723955a..350f029 100644
--- a/src/lib/MSPUBCollector.cpp
+++ b/src/lib/MSPUBCollector.cpp
@@ -819,7 +819,7 @@ std::function<void(void)> MSPUBCollector::paintShape(const ShapeInfo &info, cons
const std::vector<Line> &lines = info.m_lines;
if (hasStroke)
{
- if (hasBorderArt)
+ if (hasBorderArt && lines[0].m_widthInEmu > 0)
{
bool stretch = info.m_stretchBorderArt;
double x = coord.getXIn(m_width);