PIVOT-891: Remove extraneous debug code from TextPane.java that
should have been done in the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1828292 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wtk/src/org/apache/pivot/wtk/TextPane.java b/wtk/src/org/apache/pivot/wtk/TextPane.java
index 468bc4b..e17055d 100644
--- a/wtk/src/org/apache/pivot/wtk/TextPane.java
+++ b/wtk/src/org/apache/pivot/wtk/TextPane.java
@@ -429,11 +429,9 @@
Paragraph paragraph = (Paragraph) descendant;
Node node = getRightmostDescendant(paragraph);
-dumpNode("insertText, paragraph", paragraph, 0);
if (node instanceof TextNode) {
// Insert the text into the existing node
TextNode textNode = (TextNode) node;
-System.out.format("textNode insert: index=%1$d, textNode.doc offset=%2$d, paragraph.doc offset=%3$d%n", index, textNode.getDocumentOffset(), paragraph.getDocumentOffset());
textNode.insertText(text, index - textNode.getDocumentOffset());
} else if (node instanceof Element) {
// Append a new text node
@@ -589,7 +587,7 @@
if (offset >= 0 && offset < document.getCharacterCount()) {
Node descendant = document.getDescendantAt(offset);
-dumpNode("removeText, grandparent", descendant.getParent().getParent(), 0);
+
// Used to be: if (selectionLength == 0 && ...
if (characterCount <= 1 && descendant instanceof Paragraph) {
// We are deleting a paragraph terminator