Index: Source/core/editing/commands/MoveSelectionCommand.cpp |
diff --git a/Source/core/editing/commands/MoveSelectionCommand.cpp b/Source/core/editing/commands/MoveSelectionCommand.cpp |
index d4b98e4ba2da8a5ce64436037d1b017b9744f326..f71d23429e804ba09ab59e5b2ab5f2bced311cb1 100644 |
--- a/Source/core/editing/commands/MoveSelectionCommand.cpp |
+++ b/Source/core/editing/commands/MoveSelectionCommand.cpp |
@@ -65,7 +65,7 @@ void MoveSelectionCommand::doApply() |
if (!pos.inDocument()) |
pos = endingSelection().start(); |
- cleanupAfterDeletion(VisiblePosition(pos)); |
+ cleanupAfterDeletion(createVisiblePosition(pos)); |
setEndingSelection(VisibleSelection(pos, endingSelection().affinity(), endingSelection().isDirectional())); |
if (!pos.inDocument()) { |