diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-30 20:49:15 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-30 20:50:22 -0500 |
commit | 11cfcf401a68cbaf5dfe0a309fd482d3a3fbdff6 (patch) | |
tree | c72a6c93d5e7d57aa796d1972b3d7296d4eab545 /sc/source/ui | |
parent | 56bb7744f4a4612ffe75e56d51ba95c559435663 (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.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 38fc9ecb3002..8506f120093e 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -1327,7 +1327,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 ) |