From a05cfc077aebd71c8e882ec2c83cd7bd2b818401 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 31 Oct 2012 20:37:03 -0400 Subject: fdo#56627: Handle empty cell values separately in filters test. Perhaps this will make valgrind happy? Change-Id: I11f965d13f8d71b2ab9f9624367fd70713644f10 --- sc/qa/unit/helper/csv_handler.hxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sc/qa/unit/helper/csv_handler.hxx b/sc/qa/unit/helper/csv_handler.hxx index 8b4e54570c3f..4d16576babfa 100644 --- a/sc/qa/unit/helper/csv_handler.hxx +++ b/sc/qa/unit/helper/csv_handler.hxx @@ -117,7 +117,16 @@ public: #if DEBUG_CSV_HANDLER std::cout << "Col: " << mnCol << " Row: " << mnRow << std::endl; #endif //DEBUG_CSV_HANDLER - if (meStringType == PureString) + if (n == 0) + { + // Empty cell. + if (!mpDoc->GetString(mnCol, mnRow, mnTab).isEmpty()) + { + // cell in the document is not empty. + CPPUNIT_ASSERT_MESSAGE(createErrorMessage(mnCol, mnRow, mnTab).getStr(), false); + } + } + else if (meStringType == PureString) { rtl::OUString aCSVString(p, n, RTL_TEXTENCODING_UTF8); rtl::OUString aString; -- cgit v1.2.3