mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:59:06 +02:00
IdeIntf: Cleanup for PropEdits.
git-svn-id: trunk@58968 -
This commit is contained in:
parent
721c734e03
commit
4d743ea119
@ -5808,12 +5808,9 @@ procedure TMenuItemCaptionEditor.SetValue(const NewValue: ansistring);
|
||||
var
|
||||
Designer: TIDesigner;
|
||||
MI: TMenuItem;
|
||||
//Obj: TObject;
|
||||
Inst: TPersistent;
|
||||
begin
|
||||
//Obj := GetObjectValue; <- returns an invalid pointer. Why?
|
||||
Inst := FPropList^[0].Instance;
|
||||
DebugLn(['TMenuItemCaptionEditor.SetValue: Instance=', Inst]);
|
||||
Inst := GetComponent(0);
|
||||
if (NewValue = cLineCaption) and (Inst is TMenuItem) then
|
||||
begin
|
||||
MI := TMenuItem(Inst);
|
||||
|
Loading…
Reference in New Issue
Block a user