Skip to content

Commit

Permalink
Bug #18507 SVG output of multi-line axis labels is screwed up.
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jan 2, 2012
1 parent 9d9eb59 commit 02badab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Image/Canvas/SVG.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 02badab

Please sign in to comment.