Explorar o código

* Patch from Graeme Geldenhuys to correct an error message

git-svn-id: trunk@7842 -
michael %!s(int64=18) %!d(string=hai) anos
pai
achega
2e500fbb70
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/fcl-image/src/fpcanvas.inc

+ 2 - 2
packages/fcl-image/src/fpcanvas.inc

@@ -88,7 +88,7 @@ function TFPCustomCanvas.CreateDefaultFont : TFPCustomFont;
 begin
   result := DoCreateDefaultFont;
   if not assigned (result) then
-    raise TFPCanvasException.CreateFmt (ErrCouldNotCreate, [EPen])
+    raise TFPCanvasException.CreateFmt (ErrCouldNotCreate, [EFont])
   else
     begin
     result.AllocateResources (self);
@@ -112,7 +112,7 @@ function TFPCustomCanvas.CreateDefaultBrush : TFPCustomBrush;
 begin
   result := DoCreateDefaultBrush;
   if not assigned (result) then
-    raise TFPCanvasException.CreateFmt (ErrCouldNotCreate, [EPen])
+    raise TFPCanvasException.CreateFmt (ErrCouldNotCreate, [EBrush])
   else
     begin
     result.AllocateResources (self);