summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-09 15:44:59 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-11 12:14:24 -0400
commit0eabc71b59b97e51b8ee9630873dc8db3401f8f3 (patch)
tree7fef70b9262d91b306d91140081c9f6bf39a4a4f /svl/source
parent2f39c27be2bd66f149e0a4efdd7fa37daee43fb1 (diff)
Import shared formulas from xlsx without crashing.
The key here is to only use the shared formula ID's and ignore the ref range. The ref ranges are not correct half the time. Change-Id: If65f9b1b44ab6239db37977b6dfe3f822a9cf67e
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/misc/sharedstring.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx
index 9c0cad2f73af..0438421b2efc 100644
--- a/svl/source/misc/sharedstring.cxx
+++ b/svl/source/misc/sharedstring.cxx
@@ -118,6 +118,11 @@ bool SharedString::isEmpty() const
return mpData == NULL || mpData->length == 0;
}
+sal_Int32 SharedString::getLength() const
+{
+ return mpData ? mpData->length : 0;
+}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */