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 109818 - Linestyle not correct on prints
Linestyle not correct on prints
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: win32
0.91
Other Windows
: Normal normal
: 0.94
Assigned To: Steffen Macke
Dia maintainers
: 100673 160099 303220 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-04-02 21:26 UTC by ben.a.hetland
Modified: 2005-05-07 21:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ben.a.hetland 2003-04-02 21:26:11 UTC
Some diagrams use linestyles other than solid, for instance dashed and 
dotted lines in UML diagrams. These look OK on screen, but when they are 
printed _all_ lines become solid. Annoying since this is of semantic 
importance in UML.

My suspicion goes to the use of the Win32 renderer which is used for 
printing. The Win32 API does NOT support linestyles other than for hairline 
width (=0) lines, any lines wider than this silently become solid. A 
limitation in the API I presume, but it means that other linestyles 
actually have to be simulated in the application itself! (Or in this case, 
the renderer.)
Comment 1 Hans Breuer 2003-07-18 23:17:37 UTC
For NT based windoze this can be overcome by (PS_GEOMETRIC | PS_USERSTYLE)
and a list of 'dashes' (dash lengths). There is some code of mine which 
does this in gdk/win32.
I'm not sure though, if is such a good idea to make Dia's wmf renderer 
output platform dependent ...

Comment 2 Steffen Macke 2003-08-23 13:47:34 UTC
*** Bug 100673 has been marked as a duplicate of this bug. ***
Comment 3 Hans Breuer 2004-07-04 16:43:18 UTC
Changed my mind : now platform dependent only when printing

2004-07-04  Hans Breuer  <hans@breuer.org>

	* plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
	windoze platform supports them. This should fix bug #109818, at
	least for the majority running NT or above ...
Comment 4 Hans Breuer 2004-12-03 12:04:21 UTC
*** Bug 160099 has been marked as a duplicate of this bug. ***
Comment 5 Lars Clausen 2005-05-07 21:23:39 UTC
*** Bug 303220 has been marked as a duplicate of this bug. ***