From: Michael Rosenbruch (rosenbru_at_rosenbruch.de)
Date: Wed Jan 21 2004 - 11:10:47 EST
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
this is my first patch to abiword. My wife use it on a daily basis
and it occurred an mysterious error when printing. Only some pages
were printed. I looked for the problem and it was an error in PS-code.
(to many nested gsave's without grestore). In the attachment is my fix.
Michael
- -----------------------------------------------------------------------------
Michael Rosenbruch michael_at_rosenbruch.de
- -----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFADqSS8kLD+hGDZjARAra0AJ9TYKg8JECN97BoITK47CyUKT0n4gCfQwOW
aQ3VAcpyqRD1+J90AP1a/O4=
=YVUd
-----END PGP SIGNATURE-----
--- abicvs/abi/src/af/xap/unix/gnome/xap_UnixGnomePrintGraphics.cpp Tue Nov 18 02:04:45 2003
+++ abiword-2.1.0/abi/src/af/xap/unix/gnome/xap_UnixGnomePrintGraphics.cpp Tue Jan 20 22:05:12 2004
@@ -243,6 +243,7 @@
UT_UTF8String utf8 (pChars + iCharOffset, iLength);
gnome_print_moveto (m_gpc, tdu (xoff), yoff);
gnome_print_show_sized (m_gpc, reinterpret_cast<const guchar *>(utf8.utf8_str()), utf8.byteLength());
+ gnome_print_grestore (m_gpc);
return;
}
else if(m_bIsSymbol)
@@ -264,6 +265,7 @@
gnome_print_moveto (m_gpc, tdu (xoff), yoff);
gnome_print_show_sized (m_gpc, reinterpret_cast<const guchar *>(utf8.utf8_str()), utf8.byteLength());
delete [] uChars;
+ gnome_print_grestore (m_gpc);
return;
}
else
@@ -272,6 +274,7 @@
UT_UTF8String utf8 (pChars + iCharOffset, iLength);
gnome_print_moveto (m_gpc, tdu (xoff), yoff);
gnome_print_show_sized (m_gpc, reinterpret_cast<const guchar *>(utf8.utf8_str()), utf8.byteLength());
+ gnome_print_grestore (m_gpc);
return;
}
}
This archive was generated by hypermail 2.1.4 : Wed Jan 21 2004 - 11:01:36 EST