summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcl/pglfill.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcl/pglfill.c b/pcl/pglfill.c
index 9b92c1f9d..3be4189f0 100644
--- a/pcl/pglfill.c
+++ b/pcl/pglfill.c
@@ -682,6 +682,10 @@ hpgl_SP(
while ( pen > max_pen )
pen = pen - max_pen;
}
+
+ if (pen == pgls->g.pen.selected)
+ return 0;
+
if ( !pgls->g.polygon_mode )
hpgl_call(hpgl_draw_current_path(pgls, hpgl_rm_vector));
pgls->g.pen.selected = pen;