File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,18 +85,18 @@ class BuildingShapeUtils extends ShapeUtils {
8585 openWays . push ( result ) ;
8686 i ++ ;
8787 changed = true ;
88- } else if ( way1 [ 0 ] . getAttribute ( 'ref' ) === way2 [ 0 ] . getAttribute ( 'ref' ) ) {
89- const tempway = BuildingShapeUtils . reverseWay ( ways [ i ] ) ;
90- const result = BuildingShapeUtils . joinWays ( tempway , ways [ i + 1 ] ) ;
91- openWays . push ( result ) ;
92- i ++ ;
93- changed = true ;
9488 } else if ( way1 [ way1 . length - 1 ] . getAttribute ( 'ref' ) === way2 [ way2 . length - 1 ] . getAttribute ( 'ref' ) ) {
9589 const tempway = BuildingShapeUtils . reverseWay ( ways [ i + 1 ] ) ;
9690 const result = BuildingShapeUtils . joinWays ( ways [ i ] , tempway ) ;
9791 openWays . push ( result ) ;
9892 i ++ ;
9993 changed = true ;
94+ } else if ( way1 [ 0 ] . getAttribute ( 'ref' ) === way2 [ 0 ] . getAttribute ( 'ref' ) ) {
95+ const tempway = BuildingShapeUtils . reverseWay ( ways [ i ] ) ;
96+ const result = BuildingShapeUtils . joinWays ( tempway , ways [ i + 1 ] ) ;
97+ openWays . push ( result ) ;
98+ i ++ ;
99+ changed = true ;
100100 } else {
101101 openWays . push ( ways [ i ] ) ;
102102 }
You can’t perform that action at this time.
0 commit comments