designer: don't redraw component captions if they are not visible

git-svn-id: trunk@20296 -
This commit is contained in:
paul 2009-05-29 10:33:45 +00:00
parent f83ed67b2d
commit bb721d48bf

View File

@ -48,7 +48,7 @@ uses
LazarusIDEStrConsts, Project, JITForms,
CustomNonFormDesigner, NonControlDesigner, FrameDesigner,
ComponentReg, IDEProcs, ComponentEditors, KeyMapping, EditorOptions,
DesignerProcs;
EnvironmentOpts, DesignerProcs;
const
OrdinalTypes = [tkInteger,tkChar,tkEnumeration,tkbool];
@ -1273,7 +1273,8 @@ begin
else
begin
DesignerForm := GetDesignerForm(AComponent);
if DesignerForm <> nil then
if (DesignerForm <> nil) and (DesignerForm.Designer <> nil) and
EnvironmentOptions.ShowComponentCaptions then
DesignerForm.Invalidate;
end;
end;