https://bugs.documentfoundation.org/show_bug.cgi?id=89330

Jan <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Jan <[email protected]> ---
I wrote a small unittest to reproduce the problem:

void Test::testErrorOnExternalReferences()
{
    m_pDoc->InsertTab(0, "Sheet1");
    m_pDoc->SetString(ScAddress(0,0,0),
"='file:///Path/To/FileA.ods'#$Sheet1.A1A");

    ScFormulaCell* pFC = m_pDoc->GetFormulaCell(ScAddress(0,0,0));
    CPPUNIT_ASSERT(pFC);
    CPPUNIT_ASSERT_MESSAGE("This formula cell should be an error.",
pFC->GetErrCode() != 0);

    if (!checkFormula(*m_pDoc, ScAddress(0,0,0),
"'file:///Path/To/FileA.ods'#$Sheet1.A1A"))
    CPPUNIT_FAIL("Formula changed");

    m_pDoc->DeleteTab(0);
}


Problems seems to be somewhere in compiler.cxx

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to