diff options
author | Eike Rathke <erack@redhat.com> | 2017-02-21 18:18:17 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-02-21 18:18:34 +0100 |
commit | 8986bf698849c8b64e49f77246c0698813a602ed (patch) | |
tree | 6542355008525c88582e737ab8211f6594af7d5e | |
parent | 5b949fb75e9674f04d8b6b3ff856b7bbae3ed6ba (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 c94ddca932cf..2a9dc2175449 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -5338,9 +5338,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); |