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:
RKrom 2012-04-19 08:20:43 +00:00
commit 54dd4614f5

View file

@ -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++) {