aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/com/android/util/PositionXmlParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/com/android/util/PositionXmlParser.java b/common/src/com/android/util/PositionXmlParser.java
index 08aeb0a..fe22f58 100644
--- a/common/src/com/android/util/PositionXmlParser.java
+++ b/common/src/com/android/util/PositionXmlParser.java
@@ -356,7 +356,8 @@ public class PositionXmlParser {
Position attributePosition = createPosition(line, column, index);
// Also set end range for retrieval in getLocation
- attributePosition.setEnd(createPosition(line, column, matcher.end()));
+ attributePosition.setEnd(createPosition(line, column + matcher.end() - index,
+ matcher.end()));
return attributePosition;
} else {
// No regexp match either: just fall back to element position