diff --git a/deploy/DynaFire_bin/DynaFire.dll b/deploy/DynaFire_bin/DynaFire.dll index c48f5c8..9e6b571 100644 Binary files a/deploy/DynaFire_bin/DynaFire.dll and b/deploy/DynaFire_bin/DynaFire.dll differ diff --git a/deploy/DynaFire_bin/DynaFire.pdb b/deploy/DynaFire_bin/DynaFire.pdb index 52d1c81..efce1ac 100644 Binary files a/deploy/DynaFire_bin/DynaFire.pdb and b/deploy/DynaFire_bin/DynaFire.pdb differ diff --git a/src/DynaFire/DynaFireExtension.cs b/src/DynaFire/DynaFireExtension.cs index e634524..da9d435 100644 --- a/src/DynaFire/DynaFireExtension.cs +++ b/src/DynaFire/DynaFireExtension.cs @@ -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 + { + + } + + } } @@ -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(""))