| Index: Source/core/editing/ApplyBlockElementCommand.cpp
|
| diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| index d0195b5ce3b8c38d7cacc59c04758ac7484a9b86..b4725ef481987c4a999bb782dbcaa2f13b8188fa 100644
|
| --- a/Source/core/editing/ApplyBlockElementCommand.cpp
|
| +++ b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| @@ -274,8 +274,9 @@ VisiblePosition ApplyBlockElementCommand::endOfNextParagrahSplittingTextNodesIfN
|
| if (text->previousSibling()->isTextNode()
|
| && static_cast<unsigned>(m_endOfLastParagraph.offsetInContainerNode()) <= toText(text->previousSibling())->length())
|
| m_endOfLastParagraph = Position(toText(text->previousSibling()), m_endOfLastParagraph.offsetInContainerNode());
|
| - } else
|
| + } else {
|
| m_endOfLastParagraph = Position(text.get(), m_endOfLastParagraph.offsetInContainerNode() - 1);
|
| + }
|
| }
|
|
|
| return VisiblePosition(Position(text.get(), position.offsetInContainerNode() - 1));
|
|
|