sw/source/core/doc/doctxm.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 08daf03c139a8b585f7713314ea73e2ff109fd37
Author: Michael Stahl <[email protected]>
AuthorDate: Fri Jul 26 10:59:15 2019 +0200
Commit: Michael Stahl <[email protected]>
CommitDate: Fri Jul 26 14:48:25 2019 +0200
cid#1448229 null pointer pLayout in SwDoc::InsertTableOf()
Change-Id: I06e3b86711567ed968571b53770209fa28c4e8a3
Reviewed-on: https://gerrit.libreoffice.org/76371
Tested-by: Jenkins
Reviewed-by: Michael Stahl <[email protected]>
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 9a01f4da776c..f5f40af1222d 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -361,6 +361,7 @@ SwTOXBaseSection* SwDoc::InsertTableOf( const SwPaM& aPam,
bool bExpand,
SwRootFrame const*const pLayout )
{
+ assert(!bExpand || pLayout != nullptr);
GetIDocumentUndoRedo().StartUndo( SwUndoId::INSTOX, nullptr );
OUString sSectNm = GetUniqueTOXBaseName( *rTOX.GetTOXType(),
rTOX.GetTOXName() );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits