Bug with bullets in rtf-files
Posted: Thu Sep 18, 2014 9:46 am
I think i have found a bug in the handling of bullets in rtf-files, i can reproduce it with the actual version of RichViewActionTest:
1. Make a new File, fill it with 3 lines, the first line must be so long that the editor must wrap the line:
2. Mark all lines and push the bullet-button (o=bullet symbol)
3. Save the document as a rtf (not rvf) file
4. Open it again, it looks ok
5. Go with the cursor in the first line and push the bullet-button again (un-bullet the first line)
Now it should look
but it looks
The Editor deletes the bullet symbol and the left-margin of the first line of the first paragraph, but left the margin at the part he wraps.
When you save this wrong document again as a rtf-file and reload it, the document is shown wrong again.
It also appears when the document is stored as rtf in a DB with a TDBRichViewEdit.
It dont appears when you save the file in rvf-format instead of rft.
It dont appears when you un-bullet the line without saving and reloading the document.
Is there any workaround for this error?
Greetings
Björn
1. Make a new File, fill it with 3 lines, the first line must be so long that the editor must wrap the line:
Code: Select all
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
aaaaa aaaaa aaaaa aaaaa aaaaa
bbb
ccc
Code: Select all
o aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
o bbb
o ccc
4. Open it again, it looks ok
Code: Select all
o aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
o bbb
o ccc
Now it should look
Code: Select all
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
o bbb
o ccc
Code: Select all
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
o bbb
o ccc
When you save this wrong document again as a rtf-file and reload it, the document is shown wrong again.
It also appears when the document is stored as rtf in a DB with a TDBRichViewEdit.
It dont appears when you save the file in rvf-format instead of rft.
It dont appears when you un-bullet the line without saving and reloading the document.
Is there any workaround for this error?
Greetings
Björn