summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-07-26 10:59:15 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-07-26 14:48:25 +0200
commit08daf03c139a8b585f7713314ea73e2ff109fd37 (patch)
tree82db0e876a73f79a5dd91c4757b82bac12bb1cb9 /sw
parentaafc10c9edb61e13ac557c7e43c8d4a31dce4f37 (diff)
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@cib.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doctxm.cxx1
1 files changed, 1 insertions, 0 deletions
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() );