mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-29 18:34:42 +00:00
bitmap shape exporter - ignore strokes when bound rect has zero width/height
This commit is contained in:
@@ -411,8 +411,14 @@ public class BitmapExporter extends ShapeExporterBase {
|
||||
}
|
||||
}
|
||||
|
||||
if (thickness < 0) {
|
||||
thickness = -thickness;
|
||||
if (Double.isNaN(thickness) || Double.compare(thickness, 0.0d) == 0) { //for example when bounding box width/height is zero
|
||||
lineStroke = null;
|
||||
lineColor = null;
|
||||
return;
|
||||
} else {
|
||||
if (thickness < 0) {
|
||||
thickness = -thickness;
|
||||
}
|
||||
}
|
||||
|
||||
if (joinStyle == BasicStroke.JOIN_MITER) {
|
||||
|
||||
Reference in New Issue
Block a user