Index: Source/core/rendering/svg/SVGTextQuery.cpp |
diff --git a/Source/core/rendering/svg/SVGTextQuery.cpp b/Source/core/rendering/svg/SVGTextQuery.cpp |
index f86bd554e3db636747b7dc943c18f54e55f5f69d..a76d5724461d1a7695d4884f459682c681114564 100644 |
--- a/Source/core/rendering/svg/SVGTextQuery.cpp |
+++ b/Source/core/rendering/svg/SVGTextQuery.cpp |
@@ -215,15 +215,11 @@ void SVGTextQuery::modifyStartEndPositionsRespectingLigatures(Data* queryData, i |
return; |
if (lastPositionOffset != -1 && lastPositionOffset - positionOffset > 1) { |
- if (alterStartPosition && startPosition > lastPositionOffset && startPosition < static_cast<int>(positionOffset)) { |
+ if (alterStartPosition && startPosition > lastPositionOffset && startPosition < static_cast<int>(positionOffset)) |
startPosition = lastPositionOffset; |
- alterStartPosition = false; |
- } |
- if (alterEndPosition && endPosition > lastPositionOffset && endPosition < static_cast<int>(positionOffset)) { |
+ if (alterEndPosition && endPosition > lastPositionOffset && endPosition < static_cast<int>(positionOffset)) |
endPosition = positionOffset; |
- alterEndPosition = false; |
- } |
} |
} |