[Bug 1601] New: xedit prints wrong number of pages

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 11 00:05:34 PDT 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1601        
   
           Summary: xedit prints wrong number of pages
           Product: xorg
           Version: 6.8.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: App/other
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: felix.schulte at gmail.com


The new Print feature in xedit prints the wrong number of pages.

Example:
Do a
# man ls | head >foo.txt
# xedit
Print the page
The printer prints 5 pages instead of one, all with the same content.

Looking at the code it seems that xedit gets confused due the geometry resource
in Xedit.ad - the value is always "*geometry: 590x440" - even for the print shell.

A quick fix is to superset the resource like this:
--- xc/programs/xmore/print.c
+++ xc/programs/xmore/print.c
@@ -289,40 +289,41 @@
     n = 0;
     XtSetArg(args[n], XawNlayoutMode, XawPrintLAYOUTMODE_DRAWABLEAREA); n++;
+    XtSetArg(args[n], XtNgeometry,    "+0+0");                          n++;
     apd->printshell = CreatePrintShell(toplevel, apd->pscreen, "printshell",
args, n);        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list