Kaydet (Commit) 6ed555d9 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Ensure that we import a value of 0 correctly.

Change-Id: I1ada3cf4a162bc4a85ce4e6d2cd0c13adf3156e6
üst a43a18ed
......@@ -46,6 +46,7 @@
#include "scitems.hxx"
#include "docsh.hxx"
#include "editutil.hxx"
#include "cellvalue.hxx"
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
......@@ -278,6 +279,12 @@ void ScFiltersTest::testBasicCellContentODS()
aStr = pDoc->GetString(1, 3, 0); // B4
CPPUNIT_ASSERT_EQUAL(OUString("A < B"), aStr);
// Numeric value of 0.
ScRefCellValue aCell;
aCell.assign(*pDoc, ScAddress(1,4,0)); // B5
CPPUNIT_ASSERT_MESSAGE("This cell must be numeric.", aCell.meType == CELLTYPE_VALUE);
CPPUNIT_ASSERT_EQUAL(0.0, aCell.mfValue);
xDocSh->DoClose();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment