<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:bugzilla@mkr.email" title="Mike <bugzilla@mkr.email>"> <span class="fn">Mike</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: DOCX - Writer shows immediately after opening file the 'There are changes to be saved' icon [floppy disk with star]"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112797">bug 112797</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Attachment #136660 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr>
<tr>
<td style="text-align:right;">Attachment #136661 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr>
<tr>
<td style="text-align:right;">Attachment #136662 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr>
<tr>
<td style="text-align:right;">Attachment #136663 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: DOCX - Writer shows immediately after opening file the 'There are changes to be saved' icon [floppy disk with star]"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112797#c16">Comment # 16</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: DOCX - Writer shows immediately after opening file the 'There are changes to be saved' icon [floppy disk with star]"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112797">bug 112797</a>
from <span class="vcard"><a class="email" href="mailto:bugzilla@mkr.email" title="Mike <bugzilla@mkr.email>"> <span class="fn">Mike</span></a>
</span></b>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=137846" name="attach_137846" title="Manually fixed Minimum test case">attachment 137846</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=137846&action=edit" title="Manually fixed Minimum test case">[details]</a></span>
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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>