mirror of
https://github.com/greenshot/greenshot.git
synced 2025-03-12 05:25:25 -07:00
BUG-2116: for loop over collection which is modified caused a problem.
This commit is contained in:
parent
e5b2b7a5c3
commit
9d849d1b58
@ -27,6 +27,7 @@ using Greenshot.Plugin.Drawing;
|
||||
using GreenshotPlugin.Interfaces.Drawing;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
|
||||
namespace Greenshot.Drawing.Fields
|
||||
{
|
||||
@ -203,7 +204,7 @@ namespace Greenshot.Drawing.Fields
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (var drawableContainer1 in _boundContainers)
|
||||
foreach (var drawableContainer1 in _boundContainers.ToList())
|
||||
{
|
||||
var drawableContainer = (DrawableContainer) drawableContainer1;
|
||||
if (!drawableContainer.HasField(field.FieldType))
|
||||
|
Loading…
x
Reference in New Issue
Block a user