https://bugs.documentfoundation.org/show_bug.cgi?id=99479

--- Comment #4 from Julien Nabet <[email protected]> ---
With this patch, I don't reproduce this:
diff --git a/sc/source/core/data/poolhelp.cxx
b/sc/source/core/data/poolhelp.cxx
index 40bae0a..8aa6f86 100644
--- a/sc/source/core/data/poolhelp.cxx
+++ b/sc/source/core/data/poolhelp.cxx
@@ -113,7 +113,7 @@ SvNumberFormatter* ScPoolHelper::CreateNumberFormatter()
const
 void ScPoolHelper::SourceDocumentGone()
 {
     //  reset all pointers to the source document
-    mxStylePool->SetDocument( nullptr );
+    mxStylePool->SetDocument( m_pSourceDoc );
     if ( pFormTable )
         pFormTable->SetColorLink( Link<sal_uInt16,Color*>() );
 }

However, giving a try to gdb, mxStylePool->GetDocument() retrieved the same as
m_pSourceDoc, see this:
Breakpoint 1, ScPoolHelper::SourceDocumentGone (this=0x2c20e30) at
/home/julien/lo/libreoffice/sc/source/core/data/poolhelp.cxx:116
116        mxStylePool->SetDocument( m_pSourceDoc );
(gdb) p m_pSourceDoc
$1 = (ScDocument *) 0x2c21160
(gdb) p mxStylePool->GetDocument()
[Thread 0x2aaafd5b8700 (LWP 3545) exited]
$2 = (ScDocument *) 0x2c21160

However, I don't know if it's just for this case or if it's always the case
(and so , the patch should be just remove "mxStylePool->SetDocument( nullptr
);")

Eike: any thought?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to