mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:00:28 +02:00
* Fixed bug in length calculation, causing any namespaced attributes with local part differing only in the last character (or consisting of a single character), to be erroneously reported as duplicate.
git-svn-id: trunk@13960 -
This commit is contained in:
parent
bab5c5d8a3
commit
158afbb5b4
@ -3227,7 +3227,7 @@ begin
|
||||
{ detect duplicates }
|
||||
J := FWorkAtts[I].PrefixLen+1;
|
||||
|
||||
if FNsAttHash.Locate(@b.uri, @AttrName^.Key[J], Length(AttrName^.Key) - J) then
|
||||
if FNsAttHash.Locate(@b.uri, @AttrName^.Key[J], Length(AttrName^.Key) - J+1) then
|
||||
FatalError('Duplicate prefixed attribute');
|
||||
|
||||
// convert Attr into namespaced one (by hack for the time being)
|
||||
|
Loading…
Reference in New Issue
Block a user