Page 1 of 1

Pasting RTF (List index out of bounds)

Posted: Mon Dec 19, 2005 3:55 pm
by tmMK
(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...

Posted: Mon Dec 19, 2005 9:22 pm
by Sergey Tkachenko
Please send me this RTF file.

Posted: Tue Dec 20, 2005 1:29 pm
by tmMK
Sergey Tkachenko wrote:Please send me this RTF file.
I've sent you an email with description to [email protected]

Posted: Tue Dec 20, 2005 8:33 pm
by Sergey Tkachenko
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.

Posted: Wed Dec 21, 2005 1:10 pm
by Guest
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.
Thanks, it WORKS now! :wink:
But still - marker is not copied if selection is done from end to the beginning... (without the space on the end)

Posted: Sat Dec 24, 2005 1:54 pm
by Sergey Tkachenko
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.