Pasting RTF (List index out of bounds)

General TRichView support forum. Please post your questions here
Post Reply
tmMK
Posts: 18
Joined: Thu Sep 08, 2005 10:27 am
Location: Prague - Czech Republic

Pasting RTF (List index out of bounds)

Post 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...
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me this RTF file.
tmMK
Posts: 18
Joined: Thu Sep 08, 2005 10:27 am
Location: Prague - Czech Republic

Post by tmMK »

Sergey Tkachenko wrote:Please send me this RTF file.
I've sent you an email with description to richview@gmail.com
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Guest

Post 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)
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply