summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8graf.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-20 15:14:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-20 17:22:14 +0200
commitc8900890ad39e77285d284f5070abfe3661e493f (patch)
tree141818af44f8cbfbbcb233ad3b79091d53e162f6 /sw/source/filter/ww8/ww8graf.cxx
parent4487a14e7cce62e4fb6c1ebddac5f3e713c061de (diff)
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>
Diffstat (limited to 'sw/source/filter/ww8/ww8graf.cxx')
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index f7a048a7b35c..53f9739502eb 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);
}