X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7fe42e848cc0c9058dae906c3a7bded50681e6..e86aa7a62cc8be79ffaeb0d07b70161cb9ea2c74:/tests/controls/treectrltest.cpp?ds=sidebyside diff --git a/tests/controls/treectrltest.cpp b/tests/controls/treectrltest.cpp index 218a9b7942..a5045f5928 100644 --- a/tests/controls/treectrltest.cpp +++ b/tests/controls/treectrltest.cpp @@ -359,7 +359,7 @@ void TreeCtrlTestCase::SelectionChange() wxRect poschild1, poschild2; m_tree->GetBoundingRect(m_child1, poschild1, true); - m_tree->GetBoundingRect(m_child1, poschild2, true); + m_tree->GetBoundingRect(m_child2, poschild2, true); // We move in slightly so we are not on the edge wxPoint point1 = m_tree->ClientToScreen(poschild1.GetPosition()) + wxPoint(4, 4);