Index: Source/core/svg/SVGTextContentElement.cpp |
diff --git a/Source/core/svg/SVGTextContentElement.cpp b/Source/core/svg/SVGTextContentElement.cpp |
index 59f3c3b10c47e3130007f72625b746f8a543dc55..13c1283d25a129a78ef19ffb3ef1eb35f79a80c9 100644 |
--- a/Source/core/svg/SVGTextContentElement.cpp |
+++ b/Source/core/svg/SVGTextContentElement.cpp |
@@ -188,7 +188,7 @@ void SVGTextContentElement::selectSubString(unsigned charnum, unsigned nchars, E |
ASSERT(document().frame()); |
// Find selection start |
- VisiblePosition start(firstPositionInNode(const_cast<SVGTextContentElement*>(this))); |
+ VisiblePosition start = createVisiblePosition(firstPositionInNode(const_cast<SVGTextContentElement*>(this))); |
for (unsigned i = 0; i < charnum; ++i) |
start = nextPositionOf(start); |