]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Wed, 30 Apr 2008 15:35:31 +0000 (15:35 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 30 Apr 2008 15:35:31 +0000 (15:35 +0000)
- Fixes copy to clipboard crash on vista. However it does not fix the fact that content is not copying.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1452 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/frmActivityWindow.cs
win/C#/frmDvdInfo.cs

index 3fc29a8f4e88b1d625b659cd740fa752f967021a..4864df680a7f6e76f0fe1a087c117a72df327acb 100644 (file)
@@ -109,7 +109,7 @@ namespace Handbrake
         private void btn_copy_Click(object sender, EventArgs e)\r
         {\r
             if (rtf_actLog.Text != "")\r
-                Clipboard.SetText(rtf_actLog.Text, TextDataFormat.Text);\r
+                Clipboard.SetText(rtf_actLog.Text, TextDataFormat.Rtf);\r
         }\r
 \r
         private void btn_refresh_Click(object sender, EventArgs e)\r
index 44c45ceb6e66891c419226a2f59d90e6a5b421fd..dee7c0d307e6c52810a74d94cba7c0ed95fe2f58 100644 (file)
@@ -63,7 +63,10 @@ namespace Handbrake
         private void btn_copy_Click(object sender, EventArgs e)\r
         {\r
             if (rtf_dvdInfo.Text != "")\r
-                Clipboard.SetText(rtf_dvdInfo.Text, TextDataFormat.Text);\r
+            {\r
+                Clipboard.Clear();\r
+                Clipboard.SetText(rtf_dvdInfo.Text, TextDataFormat.Rtf);\r
+            }\r
         }\r
     }\r
 }
\ No newline at end of file