mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Use LINQ Cast
This commit is contained in:
parent
903929b3ee
commit
008fbe5faf
1 changed files with 4 additions and 2 deletions
|
@ -34,6 +34,7 @@ using Greenshot.Base.Interfaces;
|
||||||
using Greenshot.Base.Interfaces.Drawing;
|
using Greenshot.Base.Interfaces.Drawing;
|
||||||
using Greenshot.Editor.Configuration;
|
using Greenshot.Editor.Configuration;
|
||||||
using Greenshot.Editor.Drawing.Fields;
|
using Greenshot.Editor.Drawing.Fields;
|
||||||
|
using Greenshot.Editor.Drawing.Filters;
|
||||||
using Greenshot.Editor.Forms;
|
using Greenshot.Editor.Forms;
|
||||||
using Greenshot.Editor.Memento;
|
using Greenshot.Editor.Memento;
|
||||||
|
|
||||||
|
@ -328,9 +329,10 @@ namespace Greenshot.Editor.Drawing
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var drawableContainer in this)
|
var drawableContainers = this.Cast<DrawableContainer>();
|
||||||
|
|
||||||
|
foreach (var dc in drawableContainers)
|
||||||
{
|
{
|
||||||
var dc = (DrawableContainer) drawableContainer;
|
|
||||||
if (dc.Parent == null)
|
if (dc.Parent == null)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue