mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 05:38:15 +02:00
designer: don't redraw component captions if they are not visible
git-svn-id: trunk@20296 -
This commit is contained in:
parent
f83ed67b2d
commit
bb721d48bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user