XFL export if conditions about lastFillStyle/stroke fixed

This commit is contained in:
Jindra Petřík
2016-07-25 23:13:35 +02:00
parent 00c6c3bcc3
commit 234ed1c915

View File

@@ -887,13 +887,13 @@ public class XFLConverter {
}
if (!empty) {
currentLayer.writeStartElement("Edge");
if (fillStyle0 > -1) {
if (lastFillStyle0 > -1) {
currentLayer.writeAttribute("fillStyle0", lastFillStyle0);
}
if (fillStyle1 > -1) {
if (lastFillStyle1 > -1) {
currentLayer.writeAttribute("fillStyle1", lastFillStyle1);
}
if (strokeStyle > -1) {
if (lastStrokeStyle > -1) {
currentLayer.writeAttribute("strokeStyle", lastStrokeStyle);
}
StringBuilder edgesSb = new StringBuilder();