summaryrefslogtreecommitdiffstats
path: root/sc/source/core/data/column2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/column2.cxx')
-rw-r--r--sc/source/core/data/column2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index c27f506c8067..d4fe4799c64b 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -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 )