summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-24 09:44:54 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-24 09:44:54 +0000
commit083eb865544515aef35257abc6ca7067f7ee716c (patch)
tree1d15463d7431c79c04b7fa6b7180b7d036ef1670 /src/driver/svg.php
parentf66fc988e383983a2fab0f36cbdc0f9d8dbf4a86 (diff)
downloadzetacomponents-graph-083eb865544515aef35257abc6ca7067f7ee716c.zip
zetacomponents-graph-083eb865544515aef35257abc6ca7067f7ee716c.tar.gz
- Throw ezcGraphFontRenderingException on too small texts in SVG driver
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r--src/driver/svg.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index 58274e1..41fa59e 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -490,6 +490,11 @@ class ezcGraphSvgDriver extends ezcGraphDriver
break;
}
}
+
+ if ( !is_array( $result ) )
+ {
+ throw new ezcGraphFontRenderingException( $string, $this->options->font->minFontSize, $width, $height );
+ }
$this->options->font->minimalUsedFont = $size;
$this->strings[] = array(
OpenPOWER on IntegriCloud