Bug 193071 - [Print] GEF print does not work on Linux
Summary: [Print] GEF print does not work on Linux
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2007-06-18 03:33 EDT by Johan Piculell CLA
Modified: 2010-11-04 07:34 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Piculell CLA 2007-06-18 03:33:39 EDT
Build ID: I20070608-1718

Steps To Reproduce:
Can easily reproduce this with the Logic example. Just install the lastest Logic example plugin (3.3RC3 at the time of writing). Create a logic file and place a few shapes in edit area, save and right-click on the file and select print.
I have only tried "print to PDF" due to no functional printers, and when printing to a pdf I end up with a huge file with all blank pages. Actually around 20000 pages depending on the logic diagram.


More information:
Tried the same procedure on Windows and it works just fine there.
Comment 1 Yann Tanguy CLA 2007-08-21 06:19:33 EDT
The print button is disabled in linux-gtk
Comment 2 Johan Piculell CLA 2007-08-21 06:27:05 EDT
Printbutton is only disabled if using older GTK versions. From the SWT FAQ:

"GTK+ began supporting printing in version 2.10. To print in Eclipse, you need to have Eclipse version 3.3 or later, and at least GTK+ 2.10.0. To determine what GTK+ version you are running, type: rpm -q gtk2."

Comment 3 Jonathan Jarrett CLA 2007-11-29 15:30:15 EST
I've got a working printer on a Linux system using 3.4M3 version of the GEF plug-in code base.  The error consists of a print out with multiple empty pages.

Using the debugger to step through the code, the error appears to be caused by the  clipRect object's dimensions being defined with a width and height of either 0 (zero) or a negative value in the PrintFigureOperation#printPages method.