From 75217be88ccb87a54c84e31697ffb98b5f9b8e0a Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Mon, 4 Oct 2004 05:34:32 +0000 Subject: 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. --- Xprint/ps/psout.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Xprint') 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) { -- cgit v1.2.3