Index: Source/core/editing/FormatBlockCommand.cpp |
diff --git a/Source/core/editing/FormatBlockCommand.cpp b/Source/core/editing/FormatBlockCommand.cpp |
index ac397a9ebf0ad8855764e157a02f368a0dbdc281..8c6830907e2ad908256f6c28f453a7b74ed76699 100644 |
--- a/Source/core/editing/FormatBlockCommand.cpp |
+++ b/Source/core/editing/FormatBlockCommand.cpp |
@@ -88,7 +88,7 @@ void FormatBlockCommand::formatRange(const Position& start, const Position& end, |
insertNodeBefore(blockNode, nodeAfterInsertionPosition); |
} |
- Position lastParagraphInBlockNode = blockNode->lastChild() ? positionAfterNode(blockNode->lastChild()) : Position(); |
+ Position lastParagraphInBlockNode = blockNode->lastChild() ? positionAfterNode(*blockNode->lastChild()) : Position(); |
bool wasEndOfParagraph = isEndOfParagraph(VisiblePosition(lastParagraphInBlockNode)); |
moveParagraphWithClones(VisiblePosition(start), VisiblePosition(end), blockNode.get(), outerBlock.get()); |