[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdewebdev/quanta/parts/kafka
From: Nicolas Deschildre <ndeschildre () kdewebdev ! org>
Date: 2004-12-12 21:12:06
Message-ID: 20041212211206.214E31B93B () office ! kde ! org
[Download RAW message or body]
CVS commit by deschildre:
* Fix again the "Andras bug" : bad indentation. Second origin : The empty Node wasn't \
deleted during the insertion of the first character in an empty Document.
M +7 -0 wkafkapart.cpp 1.83
--- kdewebdev/quanta/parts/kafka/wkafkapart.cpp #1.82:1.83
@@ -1960,4 +1960,11 @@ void KafkaDocument::slotDomNodeModified(
props->setNode(node);
modifs->addNodeModif(modif);
+ //If there is a empty Node after of before the text, remove \
them + if(node->prev && node->prev->tag->type == Tag::Empty)
+ kafkaCommon::extractNode(node->prev, modifs);
+ if(node->next && node->next->tag->type == Tag::Empty)
+ kafkaCommon::extractNode(node->next, modifs);
+
+ //Log the changes
m_currentDoc->docUndoRedo->addNewModifsSet(modifs, \
undoRedo::KafkaModif); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic