Bug 19212

Summary: In xdvi gs does not display figures propperly
Product: [Retired] Red Hat Linux Reporter: Nicolai Langfeldt <janl>
Component: tetexAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-17 07:11:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicolai Langfeldt 2000-10-17 00:55:01 UTC
Quoting the xdvi FAQ (found in the tetex and xdvik distributions). 
Component above entered as tetex because the bug is evident under xdvi,
though it is a bug in ghostscript.

Nicolai the xdvik maintainer

7.  I am using gs 5.50 to render PostScript figures, and I find that
    sometimes characters appear on the wrong page.  Why is that?

This is a bug in ghostscript 5.50.  The following patch will fix it:

*** gdevx.c.orig        Fri Jul 17 07:31:27 1998
--- gdevx.c     Sat Oct 17 23:42:50 1998
***************
*** 59,65 ****
    ((gx_device_X *)(dev))->up_area = 0,\
    ((gx_device_X *)(dev))->up_count = 0
  #define update_flush(dev)\
!   if ( ((gx_device_X *)(dev))->up_area != 0 ) update_do_flush(dev)
  private void update_do_flush(P1(gx_device *));
  
  #define flush_text(dev)\
--- 59,66 ----
    ((gx_device_X *)(dev))->up_area = 0,\
    ((gx_device_X *)(dev))->up_count = 0
  #define update_flush(dev)\
!   if ( ((gx_device_X *)(dev))->up_area != 0 || IN_TEXT((gx_device_X
*)(dev)) )
\
!      update_do_flush(dev)
  private void update_do_flush(P1(gx_device *));
  
  #define flush_text(dev)\

Comment 1 Nicolai Langfeldt 2000-10-17 07:11:11 UTC
The patch is slightly badly formated, but it works correctly.  I just rebuilt
ghostscript (and tetex) and now have perfect xdvi viewing (and pdflatex
compiling).  Pls contact me for test cases if needed.

Comment 2 Jeff Johnson 2000-10-17 16:35:12 UTC
Fixed (patch applied) in ghostscript-5.50-10. Thanks for the patch (and offer of
test cases).

Comment 3 Tim Waugh 2001-02-02 16:38:12 UTC
*** Bug 20400 has been marked as a duplicate of this bug. ***