diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-13 23:30:32 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-14 15:35:55 -0400 |
commit | cf82be72950eeea9a3de89154c3412adbed5bd56 (patch) | |
tree | fbbb7c194500cdf543891de6eb7290bd9f25049a /sc/source | |
parent | 7a13e3dc20908bad26b65606ce6efbfeb97fca55 (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/source')
-rw-r--r-- | sc/source/core/data/documen8.cxx | 3 |
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; + } } } |