Kaydet (Commit) 44f97150 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fdo#35669: Update the references even if nothing uses them here

Merge the references with the other document even if there is no field
using them as this may break the sequence and references in other parts
of a master document.
üst f3e40273
...@@ -1074,8 +1074,7 @@ void _RefIdsMap::Check( SwDoc& rDoc, SwDoc& rDestDoc, SwGetRefField& rFld, ...@@ -1074,8 +1074,7 @@ void _RefIdsMap::Check( SwDoc& rDoc, SwDoc& rDestDoc, SwGetRefField& rFld,
void SwGetRefFieldType::MergeWithOtherDoc( SwDoc& rDestDoc ) void SwGetRefFieldType::MergeWithOtherDoc( SwDoc& rDestDoc )
{ {
if( &rDestDoc != pDoc && if( &rDestDoc != pDoc )
rDestDoc.GetSysFldType( RES_GETREFFLD )->GetDepends() )
{ {
// dann gibt es im DestDoc RefFelder, also muessen im SourceDoc // dann gibt es im DestDoc RefFelder, also muessen im SourceDoc
// alle RefFelder auf einduetige Ids in beiden Docs umgestellt // alle RefFelder auf einduetige Ids in beiden Docs umgestellt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment