8015371: The HTML text without tags does not appear inside the WordPad application, and we try to click the button, but the case exits.
authorpchelko
Fri, 13 Sep 2013 17:38:28 +0400
changeset 20129 6dc2b2aa47ac
parent 20128 25a1c15eea88
child 20130 5e4ae22bef47
8015371: The HTML text without tags does not appear inside the WordPad application, and we try to click the button, but the case exits. Reviewed-by: anthony, serb
jdk/src/windows/classes/sun/awt/windows/WDataTransferer.java
--- a/jdk/src/windows/classes/sun/awt/windows/WDataTransferer.java	Fri Sep 13 17:25:31 2013 +0400
+++ b/jdk/src/windows/classes/sun/awt/windows/WDataTransferer.java	Fri Sep 13 17:38:28 2013 +0400
@@ -211,9 +211,9 @@
                         DataFlavor.allHtmlFlavor,
                         format);
             } else {
-                // handel other html flavor types, including custom and
+                // handle other html flavor types, including custom and
                 // fragment ones
-                bytes = HTMLCodec.convertToHTMLFormat(bytes);
+                bytes = HTMLCodec.convertToHTMLFormat(super.translateTransferable(contents, flavor, format));
             }
         } else {
             // we handle non-html types basing on  their