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

@@ -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);