From b5cd2f6e1741af01b5b67382cb07fd2b8be93585 Mon Sep 17 00:00:00 2001 From: soukoku Date: Mon, 23 Mar 2015 07:20:06 -0400 Subject: [PATCH] Made IsOpen check current source. --- src/NTwain/DataSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NTwain/DataSource.cs b/src/NTwain/DataSource.cs index 7fe3ebb..8250f1f 100644 --- a/src/NTwain/DataSource.cs +++ b/src/NTwain/DataSource.cs @@ -157,7 +157,7 @@ namespace NTwain /// /// true if this data source is open; otherwise, false. /// - public bool IsOpen { get { return _session.IsSourceOpen; } } + public bool IsOpen { get { return _session.IsSourceOpen && _session.CurrentSource == this; } } /// /// Gets or sets the current settings (CustomDSData) of this source if supported.