1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Fix treenode tag casting

This commit is contained in:
KillzXGaming 2019-12-31 21:12:06 -05:00
parent 628283be49
commit 224e7bd8d7

View File

@ -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;