diff options
author | sr55 <[email protected]> | 2008-04-30 15:35:31 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-04-30 15:35:31 +0000 |
commit | 79e0d5ba8237924372c5ef71c588b0f00245fb92 (patch) | |
tree | e68537e468c628b790d84be0ce00345ea42027f3 /win/C# | |
parent | af0c70dde250b94cd64e938b131fb1b1dcb37885 (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
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/frmActivityWindow.cs | 2 | ||||
-rw-r--r-- | win/C#/frmDvdInfo.cs | 5 |
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 |