Fix treenode tag casting
This commit is contained in:
parent
628283be49
commit
224e7bd8d7
@ -392,7 +392,7 @@ namespace Toolbox.Library.Forms
|
||||
}
|
||||
|
||||
IFileFormat fileFormat = null;
|
||||
if (e.Node.Tag != null && e.Node is IFileFormat)
|
||||
if (e.Node.Tag != null && e.Node.Tag is IFileFormat)
|
||||
fileFormat = (IFileFormat)e.Node.Tag;
|
||||
else if (e.Node is IFileFormat)
|
||||
fileFormat = (IFileFormat)e.Node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user