<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Writer highlighting and editing mismatches the view. Text corruption and undo failure."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138854">138854</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Writer highlighting and editing mismatches the view. Text corruption and undo failure.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0.3.1 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dev@johnvalentine.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Examples:

A. The shape of a mouse-dragged text highlight mismatches the shape of the
displayed text, as if the text display and the highlight see different parts of
the document (or text flow). Subsequent typing might then corrupt the text,
losing lengths of text, without being able to undo.

B. Cut-and-paste of a few words within the same document can likewise corrupt
the display and the underlying text. Undo is sometimes possible.

C. Typing into a paragraph sometimes causes the remainder of a chapter to
disappear. Scrolling to the next page can sometimes make the text re-appear and
disappear between display refreshes.

Steps to Reproduce:
Case A:
1. Select text in a Writer document. In my case, the document contained 68000
words.
2. Type to replace the text.

Actual Results:
Sometimes, the text highlight mismatches the shape of the displayed text, as if
the text display and the highlight see different parts of the document (or text
flow). This is a 'red flag' that subsequent typing might then corrupt the text,
losing lengths of text, sometimes without being able to undo.

Expected Results:
The typed text replaces the highlighted text.


Reproducible: Sometimes


User Profile Reset: Yes



Additional Info:
I've listed three possibly-related issues in the Description.

I'm attempting to create a reproducible or minimal case, as I haven't yet
determined prerequisites to this bug occurring.

'Save As' (fresh document) does not fix it.

Some notes:
- 68,000-word document, using paragraph and character styling.
- Display scaling 200%, no 'High DPI' overrides in Windows.
- Multiple page view, zoomed to about 90% of the screen width.
- Use hardware acceleration: off.
- Removed any non-bundled extensions (Alternative Searching, Language Tool).
- Safe mode test is not helpful in this case, because reproducibility is rare.

I also occasionally see <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Rendering problems until line selected"
   href="show_bug.cgi?id=123456">Bug 123456</a> (misaligned rendering zones) when placing my
cursor in a paragraph.

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded</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>