From cdae6655edf4a116f6cd688cff71409f7d66ee40 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Mon, 12 Mar 2012 19:40:55 +0200 Subject: agg: prevent compiler warning by setting the return value. --- src/corelib/render/software/Agg2D.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/render/software') diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas index be71dd13..3e648abe 100644 --- a/src/corelib/render/software/Agg2D.pas +++ b/src/corelib/render/software/Agg2D.pas @@ -2577,7 +2577,7 @@ end; function TAgg2D.TextWidth(str : AnsiString ) : double; {$IFDEF AGG2D_NO_FONT} begin - // do nothing + Result := 0; end; {$ELSE} var -- cgit v1.2.3-70-g09d2