[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 26 12:49:21 UTC 2019
sw/source/core/doc/doctxm.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 08daf03c139a8b585f7713314ea73e2ff109fd37
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Fri Jul 26 10:59:15 2019 +0200
Commit: Michael Stahl <Michael.Stahl at cib.de>
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 <Michael.Stahl at cib.de>
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() );
More information about the Libreoffice-commits
mailing list