summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-09-29 14:24:27 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-10-22 18:07:26 -0400
commitab4606f9e7693e610a04174b94f0c74ea8ec388a (patch)
tree1b546783afd7e59eb307aaa9935187ec389ca917
parent8922f72d1ea1dd8af8a43d265253eac4f82baffc (diff)
Update all script types in the marked ranges up-front.
This is slightly faster than doing it on a as-needed basis. Change-Id: I7618f003f3c98ee894c3f1cf597681e4281cc6ab
-rw-r--r--sc/source/ui/view/viewfun2.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 5fb567ccb3bf..ceac6f0c69ba 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -138,6 +138,8 @@ bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData )
{
SCROW nStartNo = itRows->mnStart;
SCROW nEndNo = itRows->mnEnd;
+ ScAddress aTopLeft(0, nStartNo, nTab);
+ rDoc.UpdateScriptTypes(aTopLeft, MAXCOLCOUNT, nEndNo-nStartNo+1);
if (rDoc.SetOptimalHeight(aCxt, nStartNo, nEndNo, nTab))
{
if (!bChanged)