Skip to content

Commit 71c9c98

Browse files
committed
Fixed adjusting of record bouding box
Signed-off-by: Michal Čihař <[email protected]>
1 parent 387f8da commit 71c9c98

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

3-
## [Unreleased]
3+
## [1.1] - 2016-11-21
4+
5+
* Fixed adjusting of record bouding box
46

57
## [1.0] - 2016-11-21
68

src/ShapeRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ private function _adjustPoint($point)
596596
$point = $this->_fixPoint($point, 'z');
597597
$point = $this->_fixPoint($point, 'm');
598598
}
599-
$this->_adjustBBox($point);
600599
return $point;
601600
}
602601

@@ -642,6 +641,7 @@ public function addPoint($point, $partIndex = 0) {
642641
$this->setError(sprintf('The Shape Type "%s" is not supported.', $this->shapeType));
643642
return;
644643
}
644+
$this->_adjustBBox($point);
645645
}
646646

647647
/**

0 commit comments

Comments
 (0)