diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-05 00:37:10 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-05 00:37:10 +0100 |
| commit | 78592468fe75f09299e12d8a8fbb94635a2befd6 (patch) | |
| tree | 0b38ad59d17393e5ad44a3980962bc30e283225e /src/GraphicObjects/PrivateContainer.cs | |
| parent | 9d381671ec0b1266448eddbf4c4935cdc7d23a9f (diff) | |
divers
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs index 41918bc8..0f9b0c59 100644 --- a/src/GraphicObjects/PrivateContainer.cs +++ b/src/GraphicObjects/PrivateContainer.cs @@ -51,7 +51,9 @@ namespace Crow go = null; if (base.FindByDesignID (designID, out go)) return true; - return (bool)child?.FindByDesignID (designID, out go); + if (child == null) + return false; + return child.FindByDesignID (designID, out go); } #endif protected GraphicObject child; |