summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-04-30 15:35:31 +0000
committersr55 <[email protected]>2008-04-30 15:35:31 +0000
commit79e0d5ba8237924372c5ef71c588b0f00245fb92 (patch)
treee68537e468c628b790d84be0ce00345ea42027f3
parentaf0c70dde250b94cd64e938b131fb1b1dcb37885 (diff)
WinGui:
- 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
-rw-r--r--win/C#/frmActivityWindow.cs2
-rw-r--r--win/C#/frmDvdInfo.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs
index 3fc29a8f4..4864df680 100644
--- a/win/C#/frmActivityWindow.cs
+++ b/win/C#/frmActivityWindow.cs
@@ -109,7 +109,7 @@ namespace Handbrake
private void btn_copy_Click(object sender, EventArgs e)
{
if (rtf_actLog.Text != "")
- Clipboard.SetText(rtf_actLog.Text, TextDataFormat.Text);
+ Clipboard.SetText(rtf_actLog.Text, TextDataFormat.Rtf);
}
private void btn_refresh_Click(object sender, EventArgs e)
diff --git a/win/C#/frmDvdInfo.cs b/win/C#/frmDvdInfo.cs
index 44c45ceb6..dee7c0d30 100644
--- a/win/C#/frmDvdInfo.cs
+++ b/win/C#/frmDvdInfo.cs
@@ -63,7 +63,10 @@ namespace Handbrake
private void btn_copy_Click(object sender, EventArgs e)
{
if (rtf_dvdInfo.Text != "")
- Clipboard.SetText(rtf_dvdInfo.Text, TextDataFormat.Text);
+ {
+ Clipboard.Clear();
+ Clipboard.SetText(rtf_dvdInfo.Text, TextDataFormat.Rtf);
+ }
}
}
} \ No newline at end of file