From fd2177c6c00dd25e3bdd4cf59a60efe50f9bd006 Mon Sep 17 00:00:00 2001 From: yangjixian Date: Thu, 19 May 2011 03:44:20 +0000 Subject: [PATCH] Set points count to 0. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1636 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../lazimageeditor/lazimageeditor.lpi | 104 +++++++++--------- applications/lazimageeditor/main.pas | 1 + applications/lazimageeditor/picturectrls.pas | 2 +- 3 files changed, 52 insertions(+), 55 deletions(-) diff --git a/applications/lazimageeditor/lazimageeditor.lpi b/applications/lazimageeditor/lazimageeditor.lpi index c388327a9..e7d12773e 100644 --- a/applications/lazimageeditor/lazimageeditor.lpi +++ b/applications/lazimageeditor/lazimageeditor.lpi @@ -58,10 +58,11 @@ + - - + + @@ -69,11 +70,10 @@ - - - + + @@ -444,127 +444,123 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - diff --git a/applications/lazimageeditor/main.pas b/applications/lazimageeditor/main.pas index 113234f7d..33d39c319 100644 --- a/applications/lazimageeditor/main.pas +++ b/applications/lazimageeditor/main.pas @@ -863,6 +863,7 @@ begin YY1 := 0; YY2 := 0; end; + ActivePictureEdit.pcount := 0; ActivePictureEdit.Tool := Tool; UpdateToolSettings; ToolBarToolsClick(nil); diff --git a/applications/lazimageeditor/picturectrls.pas b/applications/lazimageeditor/picturectrls.pas index d1519552c..c259a6926 100644 --- a/applications/lazimageeditor/picturectrls.pas +++ b/applications/lazimageeditor/picturectrls.pas @@ -152,7 +152,6 @@ type protected FromColor, ToColor: TColor; paddr: array of TPoint; - pcount: integer; procedure Change; dynamic; procedure ColorChange; dynamic; procedure PictureSizeChange; dynamic; @@ -165,6 +164,7 @@ type function GetToolDrag: TPictureEditToolDrag; virtual; procedure DrawToolDrag(X1, Y1, X2, Y2: integer); virtual; public + pcount: integer; constructor Create(TheOwner: TComponent); override; destructor Destroy; override;