diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-03-12 01:52:19 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-03-12 01:52:19 +0200 |
commit | 505cc8c331840d36245f3b2e30aac63393298ad8 (patch) | |
tree | ffe55e22893f891f5d80b4cb571ddc7ae42e1c60 /src/corelib | |
parent | 59f6d151cf37e020691af41b869f9039661faa81 (diff) | |
download | fpGUI-505cc8c331840d36245f3b2e30aac63393298ad8.tar.xz |
aggpas: adds an extra sanity check in TextWidth() method.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/render/software/Agg2D.pas | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas index 85b58aa1..19b9009b 100644 --- a/src/corelib/render/software/Agg2D.pas +++ b/src/corelib/render/software/Agg2D.pas @@ -2575,6 +2575,7 @@ var str_ : PChar; begin + if str = '' then exit(0); x:=0; y:=0; |