]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use deprecated methods in wxGrid test.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 17:58:32 +0000 (17:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 17:58:32 +0000 (17:58 +0000)
Don't use the methods defined only when building 2.8-compatible mode to let
the tests compile even with WXWIN_COMPATIBILITY_2_8 off. This only worked
before because of the wrong tests in grid.h but broke after the fixes of
r70098.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/gridtest.cpp

index 49effd1dcf2c6cb9db70d605aa5972e2eeeaecf5..0bb469ab37894c130dd46751b49a9e564f9578ca 100644 (file)
@@ -644,7 +644,7 @@ void GridTestCase::CellFormatting()
 
     CPPUNIT_ASSERT_EQUAL(back, m_grid->GetCellTextColour(0, 0));
 
 
     CPPUNIT_ASSERT_EQUAL(back, m_grid->GetCellTextColour(0, 0));
 
-    m_grid->SetCellAlignment(wxALIGN_CENTRE, 0, 0);
+    m_grid->SetCellAlignment(0, 0, wxALIGN_CENTRE);
     m_grid->GetCellAlignment(0, 0, &cellhoriz, &cellvert);
 
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_CENTRE), cellhoriz);
     m_grid->GetCellAlignment(0, 0, &cellhoriz, &cellvert);
 
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_CENTRE), cellhoriz);
@@ -656,7 +656,7 @@ void GridTestCase::CellFormatting()
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_LEFT), cellhoriz);
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_BOTTOM), cellvert);
 
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_LEFT), cellhoriz);
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_BOTTOM), cellvert);
 
-    m_grid->SetCellTextColour(*wxRED, 0, 0);
+    m_grid->SetCellTextColour(0, 0, *wxRED);
 
     CPPUNIT_ASSERT_EQUAL(*wxRED, m_grid->GetCellTextColour(0, 0));
 
 
     CPPUNIT_ASSERT_EQUAL(*wxRED, m_grid->GetCellTextColour(0, 0));