Re: Little patch for a printing Problem

From: Marc Maurer (j.m.maurer_at_student.utwente.nl)
Date: Thu Jan 22 2004 - 20:25:46 EST

  • Next message: Marc Maurer: "Commit (STABLE): Re: commit: Jonny Lee's latest speed up patch."

    Backport: add missing grestores for the GnomePrint output (Michael
    Rosenbruch)
                                                                                                                            
    CVS:
    ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: Tag: ABI-2-0-0-STABLE
    CVS: xap_UnixGnomePrintGraphics.cpp
    CVS:
    ----------------------------------------------------------------------

    Op vr 23-01-2004, om 01:35 schreef Dom Lachowicz:
    > Michael,
    >
    > Thanks for this excellent patch. I committed it to our
    > CVS HEAD branch.
    >
    > Uwog, this needs to be backported.
    >
    > Cheers!
    > Dom
    >
    > --- Michael Rosenbruch <rosenbru_at_rosenbruch.de> wrote:
    > > -----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;
    > > }
    > > }
    > >
    >
    >
    > __________________________________
    > Do you Yahoo!?
    > Yahoo! SiteBuilder - Free web site building tool. Try it!
    > http://webhosting.yahoo.com/ps/sb/

    -- 
    Marc Maurer <j.m.maurer_at_student.utwente.nl>
    


    This archive was generated by hypermail 2.1.4 : Thu Jan 22 2004 - 20:20:46 EST