(1.9.19)
Hi Sergey,
i found that when you try to paste RTF from outlook to TRichViewEdit, List index out of bounds (-1) will occur when you'll try to paste text with ListMarker.
* ListMarker Text(one little space)
fun is that the exception will be risen only when you copy the listmarker without the space at the end of the text.
The most often case of this is the case when user is selecting marker from the end to the beginning. When it is from beginning to the end, the space is involved...
it's because the TRVMarkerItemInfo has ListNo = -1; so there is no marker and in my app where is the RVRuler component - it raises exception...
can you take a closer look at this? thanks a lot...
Pasting RTF (List index out of bounds)
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I've sent you an email with description to richview@gmail.comSergey Tkachenko wrote:Please send me this RTF file.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Thanks, it WORKS now!Sergey Tkachenko wrote:I missed that it was RVRuler component which raises the exception.
It is a known problem (RVRuler & list markers with ListNo=-1).
It is already fixed, please ugrade your copy of RichViewActions.
But still - marker is not copied if selection is done from end to the beginning... (without the space on the end)
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
It's by [WordPad] design.
This is not a space character, this is an invisible character representing paragraph properties. Such fake characters are used by MS Word and new versions of RichEdit/WordPad (and not used by TRichView). They can be shown in MS Word as Pi-signs.
If you include this character in the selection, paragraph properties (including bullet) will be copied, if you not include - they will not be copied.
The order of selecting (from the beginning to the end or vice versa) is not important.
This is not a space character, this is an invisible character representing paragraph properties. Such fake characters are used by MS Word and new versions of RichEdit/WordPad (and not used by TRichView). They can be shown in MS Word as Pi-signs.
If you include this character in the selection, paragraph properties (including bullet) will be copied, if you not include - they will not be copied.
The order of selecting (from the beginning to the end or vice versa) is not important.