File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,6 @@ IGraphicsTest::IGraphicsTest(const InstanceInfo& info)
103
103
};
104
104
105
105
auto chooseTestControl = [&, pGraphics, testRect](int idx) {
106
-
107
- pGraphics->RemoveControlWithTag (kCtrlTagTestControl );
108
106
109
107
IControl* pNewControl = nullptr ;
110
108
@@ -146,6 +144,7 @@ IGraphicsTest::IGraphicsTest(const InstanceInfo& info)
146
144
147
145
pGraphics->AttachControl (new IVRadioButtonControl (bounds.FracRectHorizontal (0.2 ),
148
146
[pGraphics, chooseTestControl](IControl* pCaller) {
147
+ pGraphics->RemoveControlWithTag (kCtrlTagTestControl );
149
148
SplashClickActionFunc (pCaller);
150
149
int selectedTest = dynamic_cast <IVRadioButtonControl*>(pCaller)->GetSelectedIdx ();
151
150
chooseTestControl (selectedTest);
You can’t perform that action at this time.
0 commit comments