Permalink
Browse files

Bug #18507 SVG output of multi-line axis labels is screwed up.

  • Loading branch information...
1 parent 9d9eb59 commit 02badabad98a439b85e237fae064db51d55208b1 @CloCkWeRX CloCkWeRX committed Jan 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Image/Canvas/SVG.php
View
@@ -740,7 +740,8 @@ function addText($params)
$attrs = (isset($params['attrs']) && is_array($params['attrs'])) ? $this->_getAttributes($params['attrs']) : null;
- $textHeight = $this->textHeight($text);
+ $lines = explode("\n", $text);
+ $textHeight = $this->textHeight($lines[0]);
if (!is_array($alignment)) {
$alignment = array('vertical' => 'top', 'horizontal' => 'left');

0 comments on commit 02badab

Please sign in to comment.