From 54dd4614f50028fd183ce88cc5c12d0a0bc8f288 Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 19 Apr 2012 08:20:43 +0000 Subject: [PATCH] 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 --- GreenshotPlugin/Core/CoreConfiguration.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 1a5d00024..83a624ae8 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -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(); + 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++) {