Kaydet (Commit) 29958cb6 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

We are supposed to keep track of max-length string.

Change-Id: I3a0d999f55d89734b26ee66c16cf8cadbcbac246
üst bcd00330
......@@ -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())
......
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