sc/qa/unit/uicalc/data/tdf148669.xlsx |binary
 sc/qa/unit/uicalc/uicalc.cxx          |   11 +++++++++++
 2 files changed, 11 insertions(+)

New commits:
commit c5de4d0277e18fbf79f8f80fbe49d2d25be1fb4c
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Apr 21 13:37:29 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Apr 21 16:01:24 2022 +0200

    tdf#148669: sc_uicalc: Add unittest
    
    Change-Id: I2991ef99f5a617e36cfbe9499ef1c4195d52fdf6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133254
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/qa/unit/uicalc/data/tdf148669.xlsx 
b/sc/qa/unit/uicalc/data/tdf148669.xlsx
new file mode 100644
index 000000000000..ac2634913972
Binary files /dev/null and b/sc/qa/unit/uicalc/data/tdf148669.xlsx differ
diff --git a/sc/qa/unit/uicalc/uicalc.cxx b/sc/qa/unit/uicalc/uicalc.cxx
index 9b3fb5c8a73f..2d3f48a8387b 100644
--- a/sc/qa/unit/uicalc/uicalc.cxx
+++ b/sc/qa/unit/uicalc/uicalc.cxx
@@ -2261,6 +2261,17 @@ CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf118207)
     pMod->SetInputOptions(aInputOption);
 }
 
+CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf148669)
+{
+    // Without the fix in place, this test would have failed with an assert
+    ScModelObj* pModelObj = createDoc("tdf148669.xlsx");
+
+    ScDocument* pDoc = pModelObj->GetDocument();
+    CPPUNIT_ASSERT(pDoc);
+
+    CPPUNIT_ASSERT_MESSAGE("There should be a note", 
pDoc->HasNote(ScAddress(701, 0, 0)));
+}
+
 CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf124778)
 {
     mxComponent = loadFromDesktop("private:factory/scalc");

Reply via email to