File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -554,42 +554,36 @@ public function addPoint($point, $partIndex = 0) {
554
554
switch ($ this ->shapeType ) {
555
555
case 0 :
556
556
//Don't add anything
557
- break ;
557
+ return ;
558
558
case 1 :
559
559
case 11 :
560
560
case 21 :
561
561
//Substitutes the value of the current point
562
562
$ this ->SHPData = $ point ;
563
- $ this ->_adjustBBox ($ point );
564
563
break ;
565
564
case 3 :
566
565
case 5 :
567
566
case 13 :
568
567
case 15 :
569
568
case 23 :
570
569
case 25 :
571
- $ this ->_adjustBBox ($ point );
572
-
573
570
//Adds a new point to the selected part
574
571
$ this ->SHPData ['parts ' ][$ partIndex ]['points ' ][] = $ point ;
575
-
576
572
$ this ->SHPData ['numparts ' ] = count ($ this ->SHPData ['parts ' ]);
577
573
$ this ->SHPData ['numpoints ' ] = 1 + (isset ($ this ->SHPData ['numpoints ' ]) ? $ this ->SHPData ['numpoints ' ] : 0 );
578
574
break ;
579
575
case 8 :
580
576
case 18 :
581
577
case 28 :
582
-
583
- $ this ->_adjustBBox ($ point );
584
-
585
578
//Adds a new point
586
579
$ this ->SHPData ['points ' ][] = $ point ;
587
580
$ this ->SHPData ['numpoints ' ] = 1 + (isset ($ this ->SHPData ['numpoints ' ]) ? $ this ->SHPData ['numpoints ' ] : 0 );
588
581
break ;
589
582
default :
590
583
$ this ->setError (sprintf ('The Shape Type "%s" is not supported. ' , $ this ->shapeType ));
591
- break ;
584
+ return ;
592
585
}
586
+ $ this ->_adjustBBox ($ point );
593
587
}
594
588
595
589
public function deletePoint ($ pointIndex = 0 , $ partIndex = 0 ) {
You can’t perform that action at this time.
0 commit comments