Fixed: #2469 Converting shape type did not convert gradient colors transparency

This commit is contained in:
Jindra Petřík
2025-06-17 09:18:44 +02:00
parent 6cd1e620c9
commit a60a516366
2 changed files with 10 additions and 0 deletions

View File

@@ -193,6 +193,14 @@ public class GRADIENT implements Serializable {
result.gradientRecords = Arrays.copyOfRange(result.gradientRecords, 0, 8);
}
}
for (GRADRECORD rec : result.gradientRecords) {
if (shapeNum < 3) {
rec.color = new RGB(rec.color);
} else {
rec.color = new RGBA(rec.color);
}
}
return result;
}