shithub: neatpost

Download patch

ref: 78f6d05297690db4b1df6747d4c95a116f46d7c5
parent: b623b0677c331279879b17931b66e9abcae4b4c3
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Jul 5 14:52:38 EDT 2018

pdf: reset output position after drawing commands

Reported by Dirk-Wilhelm Peters <peters@schwertfisch.de>.

--- a/pdf.c
+++ b/pdf.c
@@ -778,6 +778,8 @@
 		sbuf_printf(pg, "f\n");
 	else
 		sbuf_printf(pg, close ? "s\n" : "S\n");
+	p_v = 0;
+	p_h = 0;
 }
 
 void drawmbeg(char *s)