summaryrefslogtreecommitdiff
path: root/src/sim/sim_linepolyfill.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-09-28 19:35:08 +0000
committerscuri <scuri>2010-09-28 19:35:08 +0000
commitccb038c14044d74e1a56f8fa20a9b3d958888735 (patch)
tree109ec45c5718bd752b0a4c396c0a53c884d7cbdd /src/sim/sim_linepolyfill.c
parent88254b03ccd351d5acc4ba582f0e9c092a60f433 (diff)
*** empty log message ***
Diffstat (limited to 'src/sim/sim_linepolyfill.c')
-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);