diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-21 10:57:35 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-24 16:51:38 -0400 |
commit | 7a522da4f3946006fd325d498845225b8a8836f2 (patch) | |
tree | 038e5b89b514aade958c76dce5ff52aa4ee52244 /sc/source/core/data/column3.cxx | |
parent | 33a417fc82ce3c5f1b3d435d912eb4b5afc52054 (diff) |
Add more calls to CellStorageModified() when it's called for.
Change-Id: Ib7a7abd82060b19f7911f1fef5ccccff5d850055
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r-- | sc/source/core/data/column3.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index e4eb3fc9671c..78dbe8142287 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -455,17 +455,17 @@ void ScColumn::BroadcastNewCell( SCROW nRow ) pDocument->Broadcast(aHint); } -void ScColumn::UpdateScriptType( sc::CellTextAttr& rAttr, SCROW nRow ) +bool ScColumn::UpdateScriptType( sc::CellTextAttr& rAttr, SCROW nRow ) { if (rAttr.mnScriptType != SC_SCRIPTTYPE_UNKNOWN) // Already updated. Nothing to do. - return; + return false; // Script type not yet determined. Determine the real script // type, and store it. const ScPatternAttr* pPattern = GetPattern(nRow); if (!pPattern) - return; + return false; ScRefCellValue aCell; ScAddress aPos(nCol, nRow, nTab); @@ -490,6 +490,7 @@ void ScColumn::UpdateScriptType( sc::CellTextAttr& rAttr, SCROW nRow ) // Store the real script type to the array. rAttr.mnScriptType = pDocument->GetStringScriptType(aStr); + return true; } namespace { @@ -1346,6 +1347,7 @@ void ScColumn::MixData( sc::ParseAll(rSrcCol.maCells.begin(), rSrcCol.maCells, nRow1, nRow2, aFunc, aFunc); aFunc.commit(p); + CellStorageModified(); } |