diff --git a/ide/customformeditor.pp b/ide/customformeditor.pp index 7b7a6c6905..f11d0d63da 100644 --- a/ide/customformeditor.pp +++ b/ide/customformeditor.pp @@ -1319,8 +1319,10 @@ var if Mediator<>nil then begin NewSize:=Mediator.GetDefaultSize; - NewWidth:=NewSize.X; - NewHeight:=NewSize.Y; + if NewWidth=0 then + NewWidth:=NewSize.X; + if NewHeight=0 then + NewHeight:=NewSize.Y; end; end;