diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-09 17:50:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-11 12:14:25 -0400 |
commit | 29958cb6d8adff86ba9a68f683cd28e3baef4289 (patch) | |
tree | 7919eebf17bc7d3cc514d466b1430f9adf8957b7 /sc | |
parent | bcd0033046be0c8bcc1c6ddda18645570250f083 (diff) |
We are supposed to keep track of max-length string.
Change-Id: I3a0d999f55d89734b26ee66c16cf8cadbcbac246
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index ca9281f830c0..3af1cf99a10e 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -596,6 +596,8 @@ public: ScRefCellValue aCell(const_cast<ScFormulaCell*>(p)); checkLength(aCell); } + + const OUString& getMaxLenStr() const { return maMaxLenStr; } }; } @@ -652,6 +654,8 @@ sal_uInt16 ScColumn::GetOptimalColWidth( sc::SingleColumnSpanSet::SpansType::const_iterator it = aMarkedSpans.begin(), itEnd = aMarkedSpans.end(); for (; it != itEnd; ++it) itPos = sc::ParseAllNonEmpty(itPos, maCells, it->mnRow1, it->mnRow2, aFunc); + + aLongStr = aFunc.getMaxLenStr(); } if (!aLongStr.isEmpty()) |