summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim/sim_linepolyfill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sim/sim_linepolyfill.c b/src/sim/sim_linepolyfill.c
index 93758be..132ee87 100644
--- a/src/sim/sim_linepolyfill.c
+++ b/src/sim/sim_linepolyfill.c
@@ -1000,6 +1000,9 @@ void simfLineThin(cdCanvas* canvas, double x1, double y1, double x2, double y2,
DeltaX = fabs(x2 - x1);
DeltaY = fabs(y2 - y1);
+ if (DeltaX == 0 && DeltaY == 0) /* p1==p2 */
+ return;
+
if (DeltaX > 0.0001)
{
a = (y1-y2)/(x1-x2);