diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-06 17:36:21 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-06 17:36:21 +0100 |
| commit | 37a2cda694ea3e15bff6a96a43e4f015a2471122 (patch) | |
| tree | 3731c25f86401e1aa1841b2169fcd18905dca90c /CrowIDE/src/DesignInterface.cs | |
| parent | dc7a66697113870f8f3a123d040747164fa0d2ab (diff) | |
wip
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
| -rw-r--r-- | CrowIDE/src/DesignInterface.cs | 12 |
1 files changed, 10 insertions, 2 deletions
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) |