]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/treectrltest.cpp
proper default for iphone
[wxWidgets.git] / tests / controls / treectrltest.cpp
index 218a9b7942134aafe680495d4cab7475c59d3627..37e254a3a626987a4a3a8504a5c371b20adee020 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxTreeCtrl unit test
 // Author:      Vadim Zeitlin
 // Created:     2008-11-26
-// RCS-ID:      $Id$
 // Copyright:   (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
 //              (c) 2010 Steven Lamerton
 ///////////////////////////////////////////////////////////////////////////////
@@ -359,7 +358,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);