[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2593) Cap and Join not working correctly in UIStroke
Norman Richards (JIRA)
jira-events at lists.jboss.org
Tue Mar 18 18:14:50 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2593?page=all ]
Norman Richards closed JBSEAM-2593.
-----------------------------------
Fix Version/s: 2.0.2.GA
2.1.0.GA
Resolution: Done
Done - thanks!
> Cap and Join not working correctly in UIStroke
> ----------------------------------------------
>
> Key: JBSEAM-2593
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2593
> Project: JBoss Seam
> Issue Type: Bug
> Components: PDF
> Affects Versions: 2.0.1.GA, 2.0.1.CR2, 2.0.1.CR1, 2.0.0.GA
> Reporter: Tim Blommerde
> Assigned To: Norman Richards
> Fix For: 2.0.2.GA, 2.1.0.GA
>
>
> There is a small copy-and-paste error in the 'joinValue(String join)' method of the UIStroke class (org.jboss.seam.pdf.ui.UIStroke). Because of this error, setting the cap value of a Stroke to something else then 'round' causes a Runtime Exception and setting a join value does not work.
> Below I've added a fix for the joinMethod:
> public int joinValue(String join) {
> if (join == null || join.equalsIgnoreCase("miter")) {
> return BasicStroke.JOIN_MITER;
> } else if (join.equalsIgnoreCase("round")) {
> return BasicStroke.JOIN_ROUND;
> } else if (join.equalsIgnoreCase("bevel")) {
> return BasicStroke.JOIN_BEVEL;
> }
> throw new RuntimeException("invalid join value: " + join);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list