[Libreoffice-commits] core.git: sc/qa
Eike Rathke
erack at redhat.com
Tue Feb 21 22:11:00 UTC 2017
sc/qa/unit/ucalc.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6bf75f3d805fd97fb38f2d29158f10245035c2fa
Author: Eike Rathke <erack at redhat.com>
Date: Tue Feb 21 23:04:48 2017 +0100
this should be GetOrCreateCaption()
... as the caption object has to be created after the note was pasted from a
clipboard where the caption was forgotten..
Change-Id: I9b04f0146a7609ac44973dc181fa2ab6b11295b9
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index e6d9718..3703696 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -5374,7 +5374,7 @@ void Test::testNoteLifeCycle()
pasteFromClip( m_pDoc, aPosB5, &aClipDoc2); // should not crash ... tdf#104967
ScPostIt* pNoteB5 = m_pDoc->GetNote(aPosB5);
CPPUNIT_ASSERT_MESSAGE("Failed to paste cell comment at B5.", pNoteB5);
- const SdrCaptionObj* pCaptionB5 = pNoteB5->GetCaption();
+ const SdrCaptionObj* pCaptionB5 = pNoteB5->GetOrCreateCaption(aPosB5);
CPPUNIT_ASSERT_MESSAGE("No caption at pasted B5.", pCaptionB5);
CPPUNIT_ASSERT_MESSAGE("Captions not different after Paste.", pCaptionB5 != pOtherCaptionB5);
}
More information about the Libreoffice-commits
mailing list