summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-13 23:30:32 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-14 15:35:55 -0400
commitcf82be72950eeea9a3de89154c3412adbed5bd56 (patch)
treefbbb7c194500cdf543891de6eb7290bd9f25049a /sc
parent7a13e3dc20908bad26b65606ce6efbfeb97fca55 (diff)
We should exit the idle calc when the sheet changes.
Otherwise the code would end up in an undefined state. Change-Id: I47f58698ac1eb94bf92ab7278bb7521d892ba340
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen8.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 6684d321fcc9..9b9fecccbaba 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -664,7 +664,10 @@ bool ScDocument::IdleCalcTextWidth() // true = demnaechst wieder vers
pColIter.reset(new ScColumnTextWidthIterator(*pCol, aScope.Row(), MAXROW));
}
else
+ {
aScope.incTab(); // Move to the next sheet as the current one has scale-to-pages set.
+ return false;
+ }
}
}