ASF Bugzilla – Attachment 19330 Details for
Bug 41249
Wrong clipping with markerUnits="userSpaceOnUse"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch (text/plain), 1.71 KB, created by
x00000000
on 2006-12-30 02:53:42 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
x00000000
Created:
2006-12-30 02:53:42 UTC
Size:
1.71 KB
patch
obsolete
>Index: sources/org/apache/batik/bridge/SVGMarkerElementBridge.java >=================================================================== >--- sources/org/apache/batik/bridge/SVGMarkerElementBridge.java (revision 491202) >+++ sources/org/apache/batik/bridge/SVGMarkerElementBridge.java (working copy) >@@ -137,11 +137,6 @@ > } > } > >- // 'stroke-width' property >- Value val = CSSUtilities.getComputedStyle >- (paintedElement, SVGCSSEngine.STROKE_WIDTH_INDEX); >- float strokeWidth = val.getFloatValue(); >- > // 'markerUnits' attribute - default is 'strokeWidth' > short unitsType; > s = markerElement.getAttributeNS(null, SVG_MARKER_UNITS_ATTRIBUTE); >@@ -152,17 +147,17 @@ > (markerElement, SVG_MARKER_UNITS_ATTRIBUTE, s, ctx); > } > >- // >- // >- // >- >- // compute an additional transform for 'strokeWidth' coordinate system >- AffineTransform markerTxf; >+ // compute an additional transform for 'strokeWidth' coordinate system; >+ // else set strokeWidth to 1 for correct calculation of the clipping >+ // rectangle >+ float strokeWidth = 1; >+ AffineTransform markerTxf = new AffineTransform(); > if (unitsType == SVGUtilities.STROKE_WIDTH) { >- markerTxf = new AffineTransform(); >+ // 'stroke-width' property >+ Value val = CSSUtilities.getComputedStyle >+ (paintedElement, SVGCSSEngine.STROKE_WIDTH_INDEX); >+ strokeWidth = val.getFloatValue(); > markerTxf.scale(strokeWidth, strokeWidth); >- } else { >- markerTxf = new AffineTransform(); > } > > // 'viewBox' and 'preserveAspectRatio' attributes
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41249
:
19312
| 19330