diff options
Diffstat (limited to 'sc/source/ui/unoobj/forbiuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/forbiuno.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/forbiuno.cxx b/sc/source/ui/unoobj/forbiuno.cxx index 6f1562fd67f1..c6fe2d438d9b 100644 --- a/sc/source/ui/unoobj/forbiuno.cxx +++ b/sc/source/ui/unoobj/forbiuno.cxx @@ -53,6 +53,8 @@ ScForbiddenCharsObj::ScForbiddenCharsObj( ScDocShell* pDocSh ) : ScForbiddenCharsObj::~ScForbiddenCharsObj() { + SolarMutexGuard g; + if (pDocShell) pDocShell->GetDocument().RemoveUnoObject(*this); } |