Opened 5 years ago

Closed 4 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 5 years ago.
Sample without fix
DOTSHATCH_withFIX.png (33.1 KB) - added by fare 5 years ago.
Sample with fix
DOTSHATCH.dwg (44.8 KB) - added by fare 5 years ago.
Sample dwg
DOTSHATCH.dwf (8.3 KB) - added by fare 5 years ago.
Sample DWF
DOTS_Hatch_fix.patch (1.7 KB) - added by fare 5 years ago.
Proposed patch - fixed style

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by fare

Attachment: DOTSHATCH_withoutFIX.png added

Sample without fix

Changed 5 years ago by fare

Attachment: DOTSHATCH_withFIX.png added

Sample with fix

Changed 5 years ago by fare

Attachment: DOTSHATCH.dwg added

Sample dwg

Changed 5 years ago by fare

Attachment: DOTSHATCH.dwf added

Sample DWF

Changed 5 years ago by fare

Attachment: DOTS_Hatch_fix.patch added

Proposed patch - fixed style

comment:2 Changed 4 years ago by waltweltonlair

Owner: set to waltweltonlair

comment:3 Changed 4 years ago by waltweltonlair

Resolution: fixed
Status: newclosed

Fixed in trunk with r7895.

Note: See TracTickets for help on using tickets.