Page 1 of 1

An Error in CompareTags

Posted: Fri May 07, 2010 9:37 am
by x_ginger
In CompareTags function we found an error: invalid casting

Code: Select all

Result := StrComp(PRVAnsiChar(Tag1),PRVAnsiChar(Tag2))=0
But if we working with an Unicode Strings, in this realization if we past a lot of hyperlinks and all of them are started with the same letter, they are recognized like ONE tag, and after save we have ONLY ONE hyperlink.

May be, this line must be written like this:

Code: Select all

Result := StrIComp(PChar(Tag1), PChar(Tag2)) = 0
May be, function must be written in both versions: for working with ANSI and Unicode strings?

Posted: Sat May 08, 2010 6:49 pm
by Sergey Tkachenko
You use old version of TRichView.
This bug was already fixed.
Your fix is correct.

Posted: Wed May 12, 2010 6:53 am
by x_ginger
But our version is 1.12.0.4 - is it not last version??

Posted: Wed May 12, 2010 11:54 am
by Sergey Tkachenko
A newer version is available for registered users.
Send me a private message with information allowing to identify you as a registered user, I'll give you download links.