sc/qa/unit/ucalc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8986bf698849c8b64e49f77246c0698813a602ed Author: Eike Rathke <er...@redhat.com> Date: Tue Feb 21 18:18:17 2017 +0100 this should had been GetNote() and GetCaption() Not creating if there wasn't. Change-Id: I3e7a0d167e604b13674d24de18bd2bc7d3b36aa0 diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index c94ddca..2a9dc21 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits