crashtesting: assert on export of ooo123378-1.doc to docx
since...
commit d39651a69d789522b2faffd01879db25354b9a22
Date: Thu Aug 27 15:13:08 2020 +0300
sw: additional asserts/warns to diagnose empty style names
though the triggering of undo/redo during layout looks super dubious to me
Change-Id: Ie03fc7c1660a3c4fb77bfc0abb8373a5d5822378
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103073
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index f7a048a..53f9739 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -2826,8 +2826,13 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( long nGrafAnchorCp )
MapWrapIntoFlyFormat(pRecord, pRetFrameFormat);
// Set frame name with object name
if( pRetFrameFormat /*#i52825# */ && !aObjName.isEmpty() )
pRetFrameFormat->SetName( aObjName );
if (pRetFrameFormat /*#i52825# */)
{
if (!aObjName.isEmpty())
pRetFrameFormat->SetName( aObjName );
if (pRetFrameFormat->GetName().isEmpty())
pRetFrameFormat->SetName(m_rDoc.GetUniqueDrawObjectName());
}
return AddAutoAnchor(pRetFrameFormat);
}