[Libreoffice-bugs] [Bug 112797] FILEOPEN: DOCX - Writer shows immediately after opening file the ' There are changes to be saved' icon [floppy disk with star]

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 19 09:20:10 UTC 2017


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

Mike <bugzilla at mkr.email> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #136660|0                           |1
        is obsolete|                            |
 Attachment #136661|0                           |1
        is obsolete|                            |
 Attachment #136662|0                           |1
        is obsolete|                            |
 Attachment #136663|0                           |1
        is obsolete|                            |

--- Comment #16 from Mike <bugzilla at mkr.email> ---
Created attachment 137846
  --> https://bugs.documentfoundation.org/attachment.cgi?id=137846&action=edit
Manually fixed Minimum test case

I have NOT a coder, but I did some trial-and-error with the minimum test case
and found a hint:

1. Open minimum test case ("FILEOPEN DOCX - file in modified state directly
after opening of file.docx", 5kb only)
2. Open word\document.xml in the DOCX
3. Delete the lines 

<w:r>
<w:instrText> PAGEREF  \h </w:instrText>
</w:r>

4. Save the test case again as a DOCX
5. Open the new DOCX
6. New DOCX is not opened in "modified state".

P.S.
I opened the lines in Open XML Productivity tool and they mean:

          Run run2 = new Run();
          FieldCode fieldCode1 = new FieldCode();
          fieldCode1.Text = " PAGEREF \\h ";

(Can't understand it, I'm not a coder)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171119/def1af35/attachment.html>


More information about the Libreoffice-bugs mailing list