diff options
author | Eike Rathke <erack@redhat.com> | 2017-02-21 18:18:17 +0100 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2017-05-03 13:36:59 -0400 |
commit | f14ef408777ff3eb53cca272d9b1b52ed06d64c8 (patch) | |
tree | 187aede939db8a8807609e980aee4a3923063378 | |
parent | 091c3c85075eb8a714cb3016470845ed1c0c9444 (diff) |
this should had been GetNote() and GetCaption()
Not creating if there wasn't.
Change-Id: I3e7a0d167e604b13674d24de18bd2bc7d3b36aa0
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 76a4065dc359..c9886131b182 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -5151,9 +5151,9 @@ void Test::testNoteLifeCycle() // Undo contained the original caption object pointer which was still alive // at B4 after the merge and not cloned nor recreated during Undo. - ScPostIt* pUndoNoteB4 = m_pDoc->GetOrCreateNote(aPosB4); + ScPostIt* pUndoNoteB4 = m_pDoc->GetNote(aPosB4); CPPUNIT_ASSERT_MESSAGE("No cell comment at B4 after Undo.", pUndoNoteB4); - const SdrCaptionObj* pUndoCaptionB4 = pUndoNoteB4->GetOrCreateCaption(aPosB4); + const SdrCaptionObj* pUndoCaptionB4 = pUndoNoteB4->GetCaption(); CPPUNIT_ASSERT_MESSAGE("Captions not identical after Merge Undo.", pCaptionB4 == pUndoCaptionB4); m_pDoc->DeleteTab(0); |