small fixes

This commit is contained in:
honfika@gmail.com
2014-11-08 01:09:37 +01:00
parent eaefcb286a
commit 582e3d6a7b
2 changed files with 11 additions and 2 deletions

View File

@@ -373,6 +373,12 @@ public class BitmapExporter extends ShapeExporterBase {
thickness *= Math.max(graphics.getTransform().getScaleX(), graphics.getTransform().getScaleY());
break;
}
// todo: negative width??? (wordctr1.swf)
if (thickness < 0) {
thickness = 0;
}
if (joinStyle == BasicStroke.JOIN_MITER) {
lineStroke = new BasicStroke((float) thickness, capStyle, joinStyle, miterLimit);
} else {