Skip to content

Commit

Permalink
Designer: Fixed TVFDPropertyList.ParseSourceLine
Browse files Browse the repository at this point in the history
Designer: fixed using old unitname
  • Loading branch information
andrewd207 committed Feb 8, 2016
1 parent 95187f1 commit 88ccd96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions uidesigner/vfd_props.pas
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ function TVFDPropertyList.ParseSourceLine(wg: TfpgWidget; const line: string): b
var
s: string;
pval: pointer;
sval: String;
begin
s := line;
Result := False;
Expand All @@ -401,9 +402,11 @@ function TVFDPropertyList.ParseSourceLine(wg: TfpgWidget; const line: string): b
Result := CheckSymbol(s, ':=');
if Result then
begin
pval := TListPropertyEditorClass(EditorClass).GetItemFromString(List, s);
sval := GetIdentifier(s);
pval := TListPropertyEditorClass(EditorClass).GetItemFromString(List, sval);
Result := CheckSymbol(s, ';');
TListPropertyEditorClass(EditorClass).SetWidgetProperty(wg, Name, pval);
if Result then
TListPropertyEditorClass(EditorClass).SetWidgetProperty(wg, Name, pval);
end;
end;

Expand Down
2 changes: 1 addition & 1 deletion uidesigner/vfd_widgetclass.pas
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ TVFDWidgetClass = class(TObject)
implementation

uses
TypInfo, vfdprops;
TypInfo, vfd_props;


type
Expand Down

0 comments on commit 88ccd96

Please sign in to comment.