mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
NPR Exception fixes.
This commit is contained in:
parent
9fe00fdbdb
commit
aa3df02e3f
2 changed files with 5 additions and 2 deletions
|
@ -484,7 +484,7 @@ namespace Greenshot.Drawing
|
|||
{
|
||||
return;
|
||||
}
|
||||
_parent.FieldAggregator?.UnbindElement(this);
|
||||
_parent?.FieldAggregator?.UnbindElement(this);
|
||||
|
||||
_parent = newParent;
|
||||
foreach(IFilter filter in Filters) {
|
||||
|
|
|
@ -1618,7 +1618,10 @@ namespace Greenshot.Drawing
|
|||
{
|
||||
element.FieldChanged -= element_FieldChanged;
|
||||
}
|
||||
element.Parent = null;
|
||||
if (elementToRemove != null)
|
||||
{
|
||||
elementToRemove.Parent = null;
|
||||
}
|
||||
// Do not dispose, the memento should!! element.Dispose();
|
||||
if (invalidate)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue