Index: Source/core/editing/ApplyBlockElementCommand.cpp |
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp |
index 9eada42c339a1773857687305478b6a2ddff7403..7049dacad0ce456b06db6e76504ad91c68e796b0 100644 |
--- a/Source/core/editing/ApplyBlockElementCommand.cpp |
+++ b/Source/core/editing/ApplyBlockElementCommand.cpp |
@@ -117,8 +117,9 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel |
RefPtr<Element> blockquoteForNextIndent; |
VisiblePosition endOfCurrentParagraph = endOfParagraph(startOfSelection); |
- VisiblePosition endAfterSelection = endOfParagraph(endOfParagraph(endOfSelection).next()); |
- m_endOfLastParagraph = endOfParagraph(endOfSelection).deepEquivalent(); |
+ VisiblePosition endOfLastParagraph = endOfParagraph(endOfSelection); |
+ VisiblePosition endAfterSelection = endOfParagraph(endOfLastParagraph.next()); |
+ m_endOfLastParagraph = endOfLastParagraph.deepEquivalent(); |
bool atEnd = false; |
Position end; |