https://bz.apache.org/ooo/show_bug.cgi?id=115741

--- Comment #6 from [email protected] ---
I'll confirm this right now running version 4.0.1.  Both in my C++ extension
and in the attached document with Basic macros, the modified event is not sent
after the modification is complete if there is a paragraph break among the
deleted characters.  At times it is sent after some of the characters have been
deleted, but while the paragraph marker is still present.  No event is sent at
the end after all the modifications are complete.  If I manually query the text
afterwards, I find that the remaining changes have been completed without
notification.

This is a major problem for us, because we are trying to track changes to a
document.  If the user makes a modification and we go to check what the text
now is, we can't read it correctly if a paragraph break has been deleted.

For example, starting with text where \r means CR or paragraph break

1a\r
2\r
\r

if I delete a\r by selecting both characters and pressing DEL, the text read
after the modify event occurs is 1\r2\r.  (actually \r\n because this is on a
PC and the final \r or \r\n is never returned for getString()).  If I query the
text afterwards, it is 12\r as expected.

In the attached document run the Initialize macro to set up the listener, then
edit the document.  Run GetString to see what's in the document.

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to