Skip to content

Commit

Permalink
fix crashing on some commands, it just won't work for filter by bool …
Browse files Browse the repository at this point in the history
…mask
  • Loading branch information
Eric Rudisaile committed Jan 3, 2018
1 parent 5ecf1b8 commit c019576
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Binary file modified deploy/DynaFire_bin/DynaFire.dll
Binary file not shown.
Binary file modified deploy/DynaFire_bin/DynaFire.pdb
Binary file not shown.
15 changes: 12 additions & 3 deletions src/DynaFire/DynaFireExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,16 @@ private void TryAndPlaceNode(string key)
{
pnt = new System.Windows.Point(0,0);
}
//todo play with wehter or not to transform mcoordinates.
vm.Model.ExecuteCommand(new CreateNodeCommand(Guid.NewGuid().ToString(), nodeName, adjusted.X, adjusted.Y, false, false));
try
{
vm.Model.ExecuteCommand(new CreateNodeCommand(Guid.NewGuid().ToString(), nodeName, adjusted.X, adjusted.Y, false, false));
}
catch
{

}


}
}

Expand All @@ -223,8 +231,9 @@ internal void WriteShortcutsToFile()
File.WriteAllText(ShortcutsFileName, string.Empty);

// Then write all shortcuts with non-empty keys to the File
using (StreamWriter shortcutsFile = new System.IO.StreamWriter(ShortcutsFileName))
using (StreamWriter shortcutsFile = new StreamWriter(ShortcutsFileName))
{
SearchString = "";
foreach (Shortcut shortcut in NodeShortcuts)
{
if (!shortcut.Keys.Equals(""))
Expand Down

0 comments on commit c019576

Please sign in to comment.