diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-01 04:23:55 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-01 04:23:55 +0200 |
commit | 0034110ca6e68e2d3bd6fef11f1b0698738f24b0 (patch) | |
tree | 9d7c35f39470656e9cfebda9212df873dd46e083 /sc | |
parent | 9654d3baed29abd009a214e4292000047fb64451 (diff) |
it does not make sense to get ColorData which is converted back to Color
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 1bdfe9ddbd0e..080bf3c79c99 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -3922,20 +3922,20 @@ void Test::testSetBackgroundColor() //test yellow aColor=Color(COL_YELLOW); m_xDocShRef->GetDocFunc().SetTabBgColor(0,aColor,false, true); - CPPUNIT_ASSERT_MESSAGE("the correct color is not set", m_pDoc->GetTabBgColor(0)!= aColor.GetColor()); + CPPUNIT_ASSERT_MESSAGE("the correct color is not set", m_pDoc->GetTabBgColor(0)!= aColor); Color aOldTabBgColor=m_pDoc->GetTabBgColor(0); aColor.SetColor(COL_BLUE);//set BLUE m_xDocShRef->GetDocFunc().SetTabBgColor(0,aColor,false, true); - CPPUNIT_ASSERT_MESSAGE("the correct color is not set the second time", m_pDoc->GetTabBgColor(0)!= aColor.GetColor()); + CPPUNIT_ASSERT_MESSAGE("the correct color is not set the second time", m_pDoc->GetTabBgColor(0)!= aColor); //now check for undo SfxUndoAction* pUndo = new ScUndoTabColor(m_xDocShRef,0, aOldTabBgColor, aColor); pUndo->Undo(); - CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)== aOldTabBgColor.GetColor()); + CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)== aOldTabBgColor); pUndo->Redo(); - CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)== aColor.GetColor()); + CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)== aColor); m_pDoc->DeleteTab(0); } |