mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Check the clipboard formats, just in case, so we make sure something is set!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1805 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
b03787b2c3
commit
54dd4614f5
1 changed files with 8 additions and 0 deletions
|
@ -323,6 +323,14 @@ namespace GreenshotPlugin.Core {
|
|||
OutputFileCopyPathToClipboard = false;
|
||||
}
|
||||
|
||||
// Make sure we have clipboard formats, otherwise a paste doesn't make sense!
|
||||
if (ClipboardFormats == null || ClipboardFormats.Count == 0) {
|
||||
ClipboardFormats = new List<ClipboardFormat>();
|
||||
ClipboardFormats.Add(ClipboardFormat.PNG);
|
||||
ClipboardFormats.Add(ClipboardFormat.HTML);
|
||||
ClipboardFormats.Add(ClipboardFormat.DIB);
|
||||
}
|
||||
|
||||
// Make sure the lists are lowercase, to speedup the check
|
||||
if (NoGDICaptureForProduct != null) {
|
||||
for(int i=0; i< NoGDICaptureForProduct.Count; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue