From 5579c47d77a714105c43a96984e4ec5729c58706 Mon Sep 17 00:00:00 2001 From: JulienMoumne <julien@piwik.org> Date: Mon, 10 Sep 2012 23:31:37 +0000 Subject: [PATCH] refs #3013 * forgot to update Piwik_ImageGraph_StaticGraph_Exception git-svn-id: http://dev.piwik.org/svn/trunk@6970 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- plugins/ImageGraph/StaticGraph/Exception.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ImageGraph/StaticGraph/Exception.php b/plugins/ImageGraph/StaticGraph/Exception.php index 28ba4c4ea2..017cb47ff1 100644 --- a/plugins/ImageGraph/StaticGraph/Exception.php +++ b/plugins/ImageGraph/StaticGraph/Exception.php @@ -36,23 +36,23 @@ class Piwik_ImageGraph_StaticGraph_Exception extends Piwik_ImageGraph_StaticGrap $this->pData = new pData(); $message = $this->exception->getMessage(); - $messageHeight = $this->getMaximumTextHeight(); + list($textWidth, $textHeight) = $this->getTextWidthHeight($message); if($this->width == null) { - $this->width = $this->getMaximumTextWidth($message) + self::MESSAGE_RIGHT_MARGIN; + $this->width = $textWidth + self::MESSAGE_RIGHT_MARGIN; } if($this->height == null) { - $this->height = $messageHeight; + $this->height = $textHeight; } $this->initpImage(); $this->pImage->drawText( 0, - $messageHeight, + $textHeight, $message ); } -- GitLab