summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-12 01:52:19 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-12 01:52:19 +0200
commit505cc8c331840d36245f3b2e30aac63393298ad8 (patch)
treeffe55e22893f891f5d80b4cb571ddc7ae42e1c60 /src/corelib
parent59f6d151cf37e020691af41b869f9039661faa81 (diff)
downloadfpGUI-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.pas1
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;