summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/app/docst.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app/docst.cxx')
-rw-r--r--sw/source/uibase/app/docst.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 8eafb05fd063..07e380ade597 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -85,7 +85,7 @@
#include <paratr.hxx>
-extern bool bNoInterrupt; // in mainwn.cxx
+extern bool g_bNoInterrupt; // in swmodule.cxx
using namespace ::com::sun::star;
@@ -1264,8 +1264,8 @@ void SwDocShell::_LoadStyles( SfxObjectShell& rSource, bool bPreserveCurrentDocu
// rhbz#818557, fdo#58893: EndAllAction will call SelectShell(),
// which pushes a bunch of SfxShells that are not cleared
// (for unknown reasons) when closing the document, causing crash;
- // setting bNoInterrupt appears to avoid the problem.
- ::comphelper::FlagRestorationGuard g(bNoInterrupt, true);
+ // setting g_bNoInterrupt appears to avoid the problem.
+ ::comphelper::FlagRestorationGuard g(g_bNoInterrupt, true);
mpWrtShell->StartAllAction();
mpDoc->ReplaceStyles( *static_cast<SwDocShell&>(rSource).mpDoc );
mpWrtShell->EndAllAction();