richmemo: change in the RTF property editor. If no text is specified - clear RTF property out.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4148 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
skalogryz
2015-05-24 04:53:19 +00:00
parent 915ba50653
commit 14ca948efd

View File

@ -38,8 +38,12 @@ begin
TheDialog :=TRTFEditDialog.Create(nil); TheDialog :=TRTFEditDialog.Create(nil);
try try
TheDialog.RichMemo1.Rtf:=GetStrValue; TheDialog.RichMemo1.Rtf:=GetStrValue;
if (TheDialog.ShowModal = mrOK) then if (TheDialog.ShowModal = mrOK) then begin
SetStrValue( TheDialog.RichMemo1.Rtf ); if TheDialog.RichMemo1.Text = '' then
SetStrValue( '' )
else
SetStrValue( TheDialog.RichMemo1.Rtf );
end;
finally finally
TheDialog.Free; TheDialog.Free;
end; end;