https://issues.apache.org/bugzilla/show_bug.cgi?id=47993
Summary: <path> elements with empty path data (i.e. d="") are
*not* ignored for bounds calculations
Product: Batik
Version: 1.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Bridge
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24376)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24376)
test case
Up to and including BATIK v 1.6,
org.apache.batik.bridge.SVGPathElementBridge.buildShape ignored path elements
with empty d attributes (see revision 385978 in the SVG trunk branch for
SVGPathElementBridge.java).
Since BATIK v 1.7 this is no longer the case (see revision 426986 and later)
which results in bad bounds for org.apache.batik.gvt.GraphicsNode instances
corresponding to SVG documents that use <path d="" .../> but would not normally
include the origin of the coordinate system in their bounds.
To illustrate this issue, see the attached test case
Run against BATIK 1.6, this prints
rectWithoutEmptyPath.bounds = [x=100.0;y=100.0;w=100.0;h=100.0]
rectWithEmptyPath.bounds = [x=100.0;y=100.0;w=100.0;h=100.0]
but
rectWithoutEmptyPath.bounds = [x=100.0;y=100.0;w=100.0;h=100.0]
rectWithEmptyPath.bounds = [x=0.0;y=0.0;w=200.0;h=200.0]
when run against BATIK 1.7 or later.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]