https://bugs.documentfoundation.org/show_bug.cgi?id=170686

--- Comment #4 from Justin L <[email protected]> ---
OK - it IS an export issue.

wrtw8nds.cxx MSWordExportBase::OutputTextNode is exporting the range nCurrent =
4, nNextAttr = 6, nEnd = 6. So we get to 'if (nNextAttr == nEnd) then
OutFlys(nEnd)'. So they are getting written out inside the same run as the end
of the SDT. (Of course at this point we have no idea whether there ARE any
actual flies that will be exported - and once they are exported it is too
late.)

I can solve it with
   if (pAttr && *pAttr->GetEnd() == nEnd)
   {
       AttrOutput().EndRun(&rNode, nCurrentPos, nLen, /*bLastRun=*/false);
       AttrOutput().StartRun(pRedlineData, nCurrentPos, bSingleEmptyRun);
       nLen = 0;
       nCurrentPos = nEnd;
   }
although that would leave an empty <w:r/> after every content control that ends
the paragraph (in the very likely chance that there are no flies).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to