You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2018/04/03 23:04:52 UTC

svn commit: r1828292 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/TextPane.java

Author: rwhitcomb
Date: Tue Apr  3 23:04:52 2018
New Revision: 1828292

URL: http://svn.apache.org/viewvc?rev=1828292&view=rev
Log:
PIVOT-891:  Remove extraneous debug code from TextPane.java that
should have been done in the previous commit.

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/TextPane.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TextPane.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TextPane.java?rev=1828292&r1=1828291&r2=1828292&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/TextPane.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TextPane.java Tue Apr  3 23:04:52 2018
@@ -429,11 +429,9 @@ public class TextPane extends Container
                 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 @@ System.out.format("textNode insert: inde
 
         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