summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-01-30 20:49:15 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-01-30 21:00:04 -0500
commit5f7e5fd62233cfd37d31d059480685f341063a0e (patch)
treeca12e4a8e92bffdf0b24b77bd3b55d4a8b6ad07b /sc/source/ui
parent54d2ba39f961996667a6de9e443fb9c7225a508f (diff)
Don't overwrite bCalcAll when it's already set & remove SetCompile().
Change-Id: Ieaf84e8d36efa8314729903be029f83c31bcbdf3
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/app/scmod.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index e76370c1c818..04b2f6ced1d3 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1343,7 +1343,8 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
// Re-compile cells with name error, and recalc if at least one cell
// has been re-compiled. In the future we may want to find a way to
// recalc only those that are affected.
- bCalcAll = pDoc->CompileErrorCells(ScErrorCodes::errNoName);
+ if (pDoc->CompileErrorCells(ScErrorCodes::errNoName))
+ bCalcAll = true;
}
if ( pDoc && bCalcAll )