Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 84287d0

Browse files
author
livecodeali
committed
[[ Bug 17131 ]] Don't draw selection handles of invisible objects
1 parent b04e262 commit 84287d0

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

docs/notes/bugfix-17131.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Don't draw selection handles when objects are made invisible

engine/src/control.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,9 @@ void MCControl::sizerects(MCRectangle *rects)
11031103

11041104
void MCControl::drawselected(MCDC *dc)
11051105
{
1106+
if (!opened || !(getflag(F_VISIBLE) || showinvisible()))
1107+
return;
1108+
11061109
if (MCdragging)
11071110
return;
11081111

engine/src/group.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,9 @@ void MCGroup::boundcontrols()
29172917

29182918
void MCGroup::drawselectedchildren(MCDC *dc)
29192919
{
2920+
if (!opened || !(getflag(F_VISIBLE) || showinvisible()))
2921+
return;
2922+
29202923
MCControl *t_control = controls;
29212924
if (t_control == nil)
29222925
return;

0 commit comments

Comments
 (0)