From: jpbruyere Date: Fri, 26 Feb 2016 08:12:26 +0000 (+0100) Subject: add LogicalParent null test for getDataSource X-Git-Tag: v0.4~116 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=949d8d64ba625cc68dcb2c8a73560ce5e6aab107;p=jp%2Fcrow.git add LogicalParent null test for getDataSource --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index be2bf0e7..d0219b15 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -434,7 +434,7 @@ namespace Crow this.ResolveBindings(); } get { - return dataSource == null ? + return dataSource == null ? LogicalParent == null ? null : (LogicalParent as GraphicObject).DataSource : dataSource; } }