From 37a2cda694ea3e15bff6a96a43e4f015a2471122 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Thu, 6 Dec 2018 17:36:21 +0100 Subject: wip --- CrowIDE/src/DesignInterface.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'CrowIDE/src/DesignInterface.cs') diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs index 9d0bfe9c..7d9b8ad8 100644 --- a/CrowIDE/src/DesignInterface.cs +++ b/CrowIDE/src/DesignInterface.cs @@ -67,6 +67,8 @@ namespace Crow.Coding } public override void ProcessResize (Rectangle bounds) { + if (bounds == clientRectangle) + return; lock (UpdateMutex) { clientRectangle = bounds; surf.Dispose (); @@ -82,8 +84,14 @@ namespace Crow.Coding public override GraphicObject Load (string path) { ProjectFile pi; - if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi)) - return CreateITorFromIMLFragment (pi.Source).CreateInstance(); + try { + + if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi)) + return CreateITorFromIMLFragment (pi.Source).CreateInstance(); + } catch (Exception ex) { + + } + return null; } public override System.IO.Stream GetStreamFromPath (string path) -- cgit v1.3.1-4-g156e