Kaydet (Commit) 417120f9 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Get the script type in an efficient manner.

This alone makes AdjustRowHeight() fly on large ranges, by eliminating
the silly O(n^2) algorithm.

Change-Id: Id2693aab7fb9b2a5575c6390fcaae5a404549962
üst 8eed8f8c
......@@ -781,9 +781,10 @@ void ScColumn::GetOptimalHeight(
SCSIZE nIndex;
Search(nStart,nIndex);
sc::CellTextAttrStoreType::iterator itAttr = maCellTextAttrs.begin();
while ( nIndex < maItems.size() && (nRow=maItems[nIndex].nRow) <= nEnd )
{
sal_uInt8 nScript = pDocument->GetScriptType(nCol, nRow, nTab);
sal_uInt8 nScript = GetRangeScriptType(itAttr, nRow, nRow);
if ( nScript != nDefScript )
{
if ( nScript == SCRIPTTYPE_ASIAN )
......
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