diff --git a/ideintf/graphpropedits.pas b/ideintf/graphpropedits.pas index 3ceae0fd4a..924b628c95 100644 --- a/ideintf/graphpropedits.pas +++ b/ideintf/graphpropedits.pas @@ -494,11 +494,13 @@ begin if TheDialog.Modified then begin LoadBitmap; SetOrdValue(Longint(ABitmap)); - Modified; end; end - else - ABitmap.FreeImage; + else begin + ABitmap.Width:=0; + ABitmap.Height:=0; + end; + Modified; end; finally TheDialog.Free;