<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LibreOffice spelling dialog doesn't work correct for LT-4.7+"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132922">bug 132922</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;">CC</td>
           <td>
                
           </td>
           <td>caolanm@redhat.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LibreOffice spelling dialog doesn't work correct for LT-4.7+"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132922#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LibreOffice spelling dialog doesn't work correct for LT-4.7+"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132922">bug 132922</a>
              from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
        <pre>The problem is that edit engine treats every \n as a new paragraph (node),
while in Writer, that is just a line break. So the text split by line breaks
comes as several paragraphs into the spell dialog's edit engine. The dialog
processes its first paragraph's errors (using character properties, which are
bound to that paragraph first and last indices); thus from the dialog's PoV,
each processed error may not end in a next paragraph.

An error like "too\nsee" is reported by spelling checker, with
SpellErrorDescription having sErrorText equal to "too\nsee", and a suggestion
to change that to "to see". When user chooses to skip,
SentenceEditWindow_Impl::RestoreCurrentError compares
SpellErrorDescription::sErrorText with GetErrorText() - the latter returns only
the part of the error that is on the first edit engine paragraph, i.e. "too";
as the strings differ, the dialog considers that as if user modified the text
manually, and the "too" is "replaced back" with "too\nsee".

Caolán: do you have an idea how to fix this?</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>