Skip to content

Commit a048369

Browse files
committed
Fix assertion with IGraphicsTest
1 parent 2ba0cdf commit a048369

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/IGraphicsTest/IGraphicsTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ IGraphicsTest::IGraphicsTest(const InstanceInfo& info)
103103
};
104104

105105
auto chooseTestControl = [&, pGraphics, testRect](int idx) {
106-
107-
pGraphics->RemoveControlWithTag(kCtrlTagTestControl);
108106

109107
IControl* pNewControl = nullptr;
110108

@@ -146,6 +144,7 @@ IGraphicsTest::IGraphicsTest(const InstanceInfo& info)
146144

147145
pGraphics->AttachControl(new IVRadioButtonControl(bounds.FracRectHorizontal(0.2),
148146
[pGraphics, chooseTestControl](IControl* pCaller) {
147+
pGraphics->RemoveControlWithTag(kCtrlTagTestControl);
149148
SplashClickActionFunc(pCaller);
150149
int selectedTest = dynamic_cast<IVRadioButtonControl*>(pCaller)->GetSelectedIdx();
151150
chooseTestControl(selectedTest);

0 commit comments

Comments
 (0)