Changelog: Blake Leverett <bleverett@xxxxxxx> Printing a dashed line causes all later solid lines in postscript output to be dashed.
Index: dlls/wineps/ps.c =================================================================== RCS file: /home/wine/wine/dlls/wineps/ps.c,v retrieving revision 1.23 diff -u -r1.23 ps.c --- dlls/wineps/ps.c 8 Dec 2003 21:40:27 -0000 1.23 +++ dlls/wineps/ps.c 16 Jan 2004 05:26:55 -0000 @@ -508,6 +508,7 @@ BOOL PSDRV_WriteSetPen(PSDRV_PDEVICE *physDev) { char buf[256]; + static char *last_dash = NULL; sprintf(buf, pssetlinewidth, physDev->pen.width); PSDRV_WriteSpool(physDev, buf, strlen(buf)); @@ -516,6 +517,17 @@ sprintf(buf, pssetdash, physDev->pen.dash, 0); PSDRV_WriteSpool(physDev, buf, strlen(buf)); } + else + { + if (physDev->pen.dash != last_dash) + { + // set back to solid style for the first non-dashed line + sprintf(buf, pssetdash, "", 0); + PSDRV_WriteSpool(physDev, buf, strlen(buf)); + } + } + + last_dash = physDev->pen.dash; return TRUE; }