Index: Source/core/editing/CreateLinkCommand.cpp |
diff --git a/Source/core/editing/CreateLinkCommand.cpp b/Source/core/editing/CreateLinkCommand.cpp |
index 7f8adffff9fba2f232f09afc8f31344cc5815fa2..dcc5deb53007ba8ae83126fca79fe32cf64ab6ea 100644 |
--- a/Source/core/editing/CreateLinkCommand.cpp |
+++ b/Source/core/editing/CreateLinkCommand.cpp |
@@ -51,7 +51,7 @@ void CreateLinkCommand::doApply() |
insertNodeAt(anchorElement.get(), endingSelection().start()); |
RefPtr<Text> textNode = Text::create(document(), m_url); |
appendNode(textNode.get(), anchorElement.get()); |
- setEndingSelection(VisibleSelection(positionInParentBeforeNode(anchorElement.get()), positionInParentAfterNode(anchorElement.get()), DOWNSTREAM, endingSelection().isDirectional())); |
+ setEndingSelection(VisibleSelection(positionInParentBeforeNode(*anchorElement), positionInParentAfterNode(*anchorElement), DOWNSTREAM, endingSelection().isDirectional())); |
} |
} |