changeset 20129:6dc2b2aa47ac

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
author pchelko
date Fri, 13 Sep 2013 17:38:28 +0400
parents 25a1c15eea88
children 5e4ae22bef47
files jdk/src/windows/classes/sun/awt/windows/WDataTransferer.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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