After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 531687 - Too much white pages printed
Too much white pages printed
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.96.1
Other All
: Normal normal
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-06 09:12 UTC by emmanuel@engelhart.org
Modified: 2008-05-10 19:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
My dia document (6.91 KB, application/x-dia-diagram)
2008-05-06 09:13 UTC, emmanuel@engelhart.org
Details

Description emmanuel@engelhart.org 2008-05-06 09:12:06 UTC
Please describe the problem:
I have a dia document with only one diagram on one page. Scale is 100.0 and the diagram takes a whole unique page. If I want to print it, 5 white pages are "printed" in addition.

Steps to reproduce:
1. load the document
2. print it

Actual results:
I have one correctly printed page with my diagram and 5 other white pages.

Expected results:
Only one printed page with my diagram.

Does this happen every time?
yes

Other information:
Comment 1 emmanuel@engelhart.org 2008-05-06 09:13:01 UTC
Created attachment 110446 [details]
My dia document

The problematic dia document.
Comment 2 Hans Breuer 2008-05-10 12:12:04 UTC
The diagram includes a bunch of empty text objects which were growing the layers bounding box. One way to fix the output would be to delete these objects (see bug #99375).
But the probably better way just got commited to SVN:

2008-05-10  Hans Breuer  <hans@breuer.org>

	* lib/diagramdata.c(layer_update_extents) : don't consider empty 
	objects for the overall extents. Fixes bug #531687 and lowers
	priority of bug #99375.
	
	* plug-ins/wmf/wmf.cpp : don't assume pango_context_load_font() can not
	fail. It does for font descriptions pointing to fonts not available
	on the particular system.

Comment 3 emmanuel@engelhart.org 2008-05-10 19:17:48 UTC
Thank you for this quick solution. I will wait the next ubuntu's updates of dia impatiently :)