mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
BUG-2116: for loop over collection which is modified caused a problem.
This commit is contained in:
parent
e5b2b7a5c3
commit
9d849d1b58
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ using Greenshot.Plugin.Drawing;
|
||||||
using GreenshotPlugin.Interfaces.Drawing;
|
using GreenshotPlugin.Interfaces.Drawing;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace Greenshot.Drawing.Fields
|
namespace Greenshot.Drawing.Fields
|
||||||
{
|
{
|
||||||
|
@ -203,7 +204,7 @@ namespace Greenshot.Drawing.Fields
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach (var drawableContainer1 in _boundContainers)
|
foreach (var drawableContainer1 in _boundContainers.ToList())
|
||||||
{
|
{
|
||||||
var drawableContainer = (DrawableContainer) drawableContainer1;
|
var drawableContainer = (DrawableContainer) drawableContainer1;
|
||||||
if (!drawableContainer.HasField(field.FieldType))
|
if (!drawableContainer.HasField(field.FieldType))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue