mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
BUG-2172: Fixing an issue when the DrawableContainerList's parent is removed. [skip ci]
This commit is contained in:
parent
b8009fe256
commit
2d6b428ee4
1 changed files with 2 additions and 2 deletions
|
@ -104,8 +104,8 @@ namespace Greenshot.Drawing {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
ParentID = value.ID;
|
ParentID = value?.ID ?? Guid.NewGuid();
|
||||||
foreach(var drawableContainer in this) {
|
foreach (var drawableContainer in this) {
|
||||||
var dc = (DrawableContainer) drawableContainer;
|
var dc = (DrawableContainer) drawableContainer;
|
||||||
dc.Parent = value;
|
dc.Parent = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue