Reviewed by John
[WebKit-https.git] / WebCore / khtml / editing / SelectionController.cpp
index 60690f6ec1826d4425374bc643dc7375085ad700..cc7885aa92e429ac8c19b5119c5f0e53308c9f65 100644 (file)
@@ -973,7 +973,7 @@ static Position endOfLastRunAt(RenderObject *renderNode, int y)
         if (position.isNotNull())
             return position;
         
-        if (n->isText()) {
+        if (n->isText() && !n->isBR()) {
             RenderText *textRenderer = static_cast<RenderText *>(n);
             for (InlineTextBox* box = textRenderer->lastTextBox(); box; box = box->prevTextBox()) {
                 int absx, absy;