Index: Source/core/editing/TextIterator.cpp |
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp |
index c11f0d8bc5e3f672b39f41dcf806232618fb6148..ebc655382b6b5972f74fcbe8b8b697ac2fb60e85 100644 |
--- a/Source/core/editing/TextIterator.cpp |
+++ b/Source/core/editing/TextIterator.cpp |
@@ -1733,7 +1733,7 @@ PassRefPtrWillBeRawPtr<Range> BackwardsCharacterIterator::range() const |
Position BackwardsCharacterIterator::endPosition() const |
{ |
Node* n = m_textIterator.startContainer(); |
- if (m_textIterator.atEnd()) { |
+ if (!m_textIterator.atEnd()) { |
if (m_textIterator.length() > 1) |
return createLegacyEditingPosition(n, m_textIterator.endOffset() - m_runOffset); |
ASSERT(!m_runOffset); |