summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-10-04 05:34:32 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-10-04 05:34:32 +0000
commit75217be88ccb87a54c84e31697ffb98b5f9b8e0a (patch)
tree44520c07997d56164c51b21d219fbc92986eeef7
parent658b4ed81f777df2d8b9f47904de90bde1897113 (diff)
Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=661 - Xprt
producing spurious characters in PS output when using the bitmap cache (Originally reported against Solaris Xprt as Sun bug id #4369307, and fixed in Solaris by Jay Hobson.
-rw-r--r--Xprint/ps/psout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Xprint/ps/psout.c b/Xprint/ps/psout.c
index f156ce81f..0f5ed2e02 100644
--- a/Xprint/ps/psout.c
+++ b/Xprint/ps/psout.c
@@ -1448,14 +1448,16 @@ PsOut_EndImage(PsOutPtr self)
self->RevImage = 0;
return;
}
-
+ /*
+ * Bug 4639307: Move flush before "> im" to get all of bitmap into ps file.
+ */
+ S_Flush(self);
#ifdef BM_CACHE
if(self->start_image)
S_OutTok(self, "> im", 1); /* new */
#endif
self->ImageFormat = 0;
self->RevImage = 0;
- S_Flush(self);
#ifdef BM_CACHE
if(self->start_image)
{