[Lazarus] IsAccel bug?
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Nov 18 04:03:34 CET 2011
Mattias Gaertner schrieb:
> Hans-Peter Diettrich <DrDiettrich1 at aol.com> hat am 17. November 2011 um
> 09:33 geschrieben:
>
> > In forms.IsAccel I suspect an bug, which manifests in very rare cases
> only:
> >
> > position := UTF8Pos(AmpersandChar, ACaption);
> > This is the position of the &
> >
> > ...
> >
> > UTF8Delete(ACaption, 1, position+1);
> >
> > This IMO removes the character *after* the ampersand
>
>
>
> Yes, which is another ampersand (&&). So it deletes both ampersands.
Right :-)
DoDi
More information about the Lazarus
mailing list