Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#422 closed defect (fixed)

Polygon holes connected by lines in Postscript/PDF

Reported by: rblazek Owned by: rblazek
Priority: major: does not work as expected Milestone:
Component: Printing Version:
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

This was originaly reported by tutey@… in ticket https://svn.qgis.org/trac/ticket/345#comment:21

No crashes anymore. But the eps output happens to be corrupted if it conatins polygons. Take the attached shapefile and compose a map out of it (A4, portrait). In the left-top corner you'll see bogus line rendered (see the attached png dump; you can grab the whole eps from here: http://kufaya.googlepages.com/qgis.eps.bz2). This is only an example, I can reproduce this bug with other polygon layers. It is reproducable, though I can't find a pattern for it.

Change History (4)

comment:1 by rblazek, 17 years ago

Resolution: fixed
Status: newclosed

I see the reason but no easy solution. The problem is that Qt (AFAIK) does not support rendering of polygons with holes. We use the trick when each hole is connected 2 lines from the first vertex of the polygon. This works on screen but it seems it does not work in PS. PS has its own correct method how to render polygons with holes but we cannot use it through Qt.

We could probably find for each hole a better outer polygon vertex so that the connection does not run outside the polygon but it can be CPU time consuming in case of large polygons with many holes.

Radim

comment:2 by rblazek, 17 years ago

Resolution: fixed
Status: closedreopened

comment:3 by wonder, 17 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r6193 by using QPainterPath to draw polygons.

comment:4 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.