diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-03 16:47:50 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-03 16:47:50 +0000 |
commit | 792f2f514e83efc794dd9cec3c07534c651b2a21 (patch) | |
tree | 4b6ab30652cf9dfde6722e628f49b7a212300404 /src/driver | |
parent | a66f67d61a90fe83a7a510adc2c881aeb2bd4052 (diff) | |
download | zetacomponents-graph-792f2f514e83efc794dd9cec3c07534c651b2a21.zip zetacomponents-graph-792f2f514e83efc794dd9cec3c07534c651b2a21.tar.gz |
- Fixed notice occuring, when chart is to small to render any strings
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/gd.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver/gd.php b/src/driver/gd.php index 2186081..1da7446 100644 --- a/src/driver/gd.php +++ b/src/driver/gd.php @@ -241,6 +241,7 @@ class ezcGraphGdDriver extends ezcGraphDriver // Try to get a font size for the text to fit into the box $maxSize = min( $height, $this->options->font->maxFontSize ); + $result = false; for ( $size = $maxSize; $size >= $this->options->font->minFontSize; --$size ) { $result = $this->testFitStringInTextBox( $string, $position, $width, $height, $size ); |