diff --git a/src/FontLib/Glyph/OutlineSimple.php b/src/FontLib/Glyph/OutlineSimple.php index 3c023de..56b2fb4 100644 --- a/src/FontLib/Glyph/OutlineSimple.php +++ b/src/FontLib/Glyph/OutlineSimple.php @@ -265,7 +265,7 @@ public function getSVGContours($points = null) { $points = $this->points; } - $length = count($points); + $length = (empty($points) ? 0 : count($points)); $firstIndex = 0; $count = 0; @@ -332,4 +332,4 @@ protected function getSVGPath($points, $startIndex, $count) { function midValue($a, $b) { return $a + ($b - $a) / 2; } -} \ No newline at end of file +}