Opened 10 years ago

Closed 9 years ago

#2285 closed defect (fixed)

DOTS hatch pattern from DWF files not rendering using AGG Renderer

Reported by: fare Owned by: waltweltonlair
Priority: low Milestone:
Component: Drawing Service Version: 2.5.0
Severity: minor Keywords:
Cc: External ID:

Description

If DWF file contains DOTS hatch pattern filled object, it will not render if AGG Renderer is used.

Dots from DWF file are processed as lines with same starting and ending coordinates(length is 0). Method _TransferPoints from AGGRenderer class is not correctly handling lines that have length=0.

Proposed patch works around this problem. If line length is 0 then line is rendered using value 2*LINE_SEGMENT_DOT_SIZE as it's length. This effectively fixes problem of rendering DOTS hats from DWF.

Attachments (5)

DOTSHATCH_withoutFIX.png (9.5 KB ) - added by fare 10 years ago.
Sample without fix
DOTSHATCH_withFIX.png (33.1 KB ) - added by fare 10 years ago.
Sample with fix
DOTSHATCH.dwg (44.8 KB ) - added by fare 10 years ago.
Sample dwg
DOTSHATCH.dwf (8.3 KB ) - added by fare 10 years ago.
Sample DWF
DOTS_Hatch_fix.patch (1.7 KB ) - added by fare 10 years ago.
Proposed patch - fixed style

Download all attachments as: .zip

Change History (8)

by fare, 10 years ago

Attachment: DOTSHATCH_withoutFIX.png added

Sample without fix

by fare, 10 years ago

Attachment: DOTSHATCH_withFIX.png added

Sample with fix

by fare, 10 years ago

Attachment: DOTSHATCH.dwg added

Sample dwg

by fare, 10 years ago

Attachment: DOTSHATCH.dwf added

Sample DWF

by fare, 10 years ago

Attachment: DOTS_Hatch_fix.patch added

Proposed patch - fixed style

comment:2 by waltweltonlair, 9 years ago

Owner: set to waltweltonlair

comment:3 by waltweltonlair, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk with r7895.

Note: See TracTickets for help on using tickets.