Fixed: #1570 Incorrect shape rendering when edge is reversed

This commit is contained in:
Jindra Petřík
2021-03-04 17:47:28 +01:00
parent 1dda4b9017
commit 7b1053f6e1
2 changed files with 4 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
- #1634 AS3 slot/const editor loses focus on edit button press
- #1636 Exception after search - traitslist with not properly set abc, other ui exception
- Flash viewer- cyclic DefineSprite usage
- #1570 Incorrect shape rendering when edge is reversed
### Removed
- #1631 ActiveX Flash component download in windows installer

View File

@@ -46,6 +46,8 @@ import java.util.Map;
*/
public abstract class ShapeExporterBase implements IShapeExporter {
private static final boolean USE_REVERSE_LOOKUP = true;
protected final SHAPE shape;
private final List<FillStyle> _fillStyles;
@@ -454,13 +456,10 @@ public abstract class ShapeExporterBase implements IShapeExporter {
if (edge != null) {
idx = subPath.indexOf(edge);
} else {
boolean useNew = false;
IEdge revEdge = findNextEdgeInCoordMap(reverseCoordMap, prevEdge);
if (revEdge != null) {
if (useNew) {
if (USE_REVERSE_LOOKUP) {
idx = subPath.indexOf(revEdge);
IEdge r = revEdge.reverseWithNewFillStyle(revEdge.getFillStyleIdx());
updateEdgeInCoordMap(coordMap, revEdge, r);