Reviewed by Ken Kocienda.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jan 2005 19:45:33 +0000 (19:45 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jan 2005 19:45:33 +0000 (19:45 +0000)
        Better fix for 3905066.

        * khtml/editing/htmlediting.cpp:
        (khtml::InsertParagraphSeparatorCommand::doApply):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8362 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp

index 70e1c1803b3ae8ff25710b7913eb92f2b6dc4c70..29ec565ef216fa24bbb0e2130ab4f4db3f8cd636 100644 (file)
@@ -1,3 +1,12 @@
+2005-01-13  David Harrison  <harrison@apple.com>
+
+        Reviewed by Ken Kocienda.
+        
+        Better fix for 3905066.
+        
+        * khtml/editing/htmlediting.cpp:
+        (khtml::InsertParagraphSeparatorCommand::doApply):
+
 2005-01-10  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Darin.
index d00f0bef9d83cf18096259fd77a5d7687083a456..136c9300b6f146f3bf4f3c3270eedbf55e908d4e 100644 (file)
@@ -2549,7 +2549,7 @@ void InsertParagraphSeparatorCommand::doApply()
     // Handle whitespace that occurs after the split
     if (splitText) {
         document()->updateLayout();
-        pos = Position(blockToInsert, 0);
+        pos = Position(startNode, 0);
         if (!pos.isRenderedCharacter()) {
             // Clear out all whitespace and insert one non-breaking space
             ASSERT(startNode && startNode->isTextNode());