Fixed [#1469] by checking if there are grippers.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2516 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-03-06 19:31:07 +00:00
commit 1057d5f23a
3 changed files with 26 additions and 12 deletions

View file

@ -50,8 +50,10 @@ namespace Greenshot.Drawing {
}
protected void Init() {
foreach(int index in new int[]{1,2,3,5,6,7}) {
grippers[index].Enabled = false;
if (grippers != null) {
foreach (int index in new int[] { 1, 2, 3, 5, 6, 7 }) {
grippers[index].Enabled = false;
}
}
}