diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-24 09:44:54 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-24 09:44:54 +0000 |
commit | 083eb865544515aef35257abc6ca7067f7ee716c (patch) | |
tree | 1d15463d7431c79c04b7fa6b7180b7d036ef1670 /src/driver/svg.php | |
parent | f66fc988e383983a2fab0f36cbdc0f9d8dbf4a86 (diff) | |
download | zetacomponents-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.php | 5 |
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( |