mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 22:19:12 +02:00
IDE: fixed freeing TSizeComponentsDialog
git-svn-id: trunk@48221 -
This commit is contained in:
parent
7e3829dd80
commit
8f4d84fdbd
@ -38,7 +38,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
// FCL + LCL
|
// FCL + LCL
|
||||||
Types, Classes, Math, SysUtils, contnrs, variants, TypInfo,
|
Types, Classes, Math, SysUtils, variants, TypInfo,
|
||||||
LCLProc, LCLType, LResources, LCLIntf, LMessages, InterfaceBase,
|
LCLProc, LCLType, LResources, LCLIntf, LMessages, InterfaceBase,
|
||||||
Forms, Controls, GraphType, Graphics, Dialogs, ExtCtrls, Menus,
|
Forms, Controls, GraphType, Graphics, Dialogs, ExtCtrls, Menus,
|
||||||
ClipBrd,
|
ClipBrd,
|
||||||
|
@ -53,7 +53,7 @@ type
|
|||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ShowSizeComponentsDialog(var HorizSizingID, FixedWidth,
|
function ShowSizeComponentsDialog(out HorizSizingID, FixedWidth,
|
||||||
VertSizingID, FixedHeight: integer): TModalResult;
|
VertSizingID, FixedHeight: integer): TModalResult;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -63,8 +63,8 @@ implementation
|
|||||||
uses
|
uses
|
||||||
LazarusIDEStrConsts;
|
LazarusIDEStrConsts;
|
||||||
|
|
||||||
function ShowSizeComponentsDialog(var HorizSizingID, FixedWidth,
|
function ShowSizeComponentsDialog(out HorizSizingID, FixedWidth, VertSizingID,
|
||||||
VertSizingID, FixedHeight: integer): TModalResult;
|
FixedHeight: integer): TModalResult;
|
||||||
var
|
var
|
||||||
SizeComponentsDialog: TSizeComponentsDialog;
|
SizeComponentsDialog: TSizeComponentsDialog;
|
||||||
begin
|
begin
|
||||||
@ -76,6 +76,7 @@ begin
|
|||||||
FixedWidth := StrToIntDef(WidthEdit.Text,0);
|
FixedWidth := StrToIntDef(WidthEdit.Text,0);
|
||||||
VertSizingID := HeightRadioGroup.ItemIndex;
|
VertSizingID := HeightRadioGroup.ItemIndex;
|
||||||
FixedHeight := StrToIntDef(HeightEdit.Text,0);
|
FixedHeight := StrToIntDef(HeightEdit.Text,0);
|
||||||
|
Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user