aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/DesignInterface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-06 17:36:21 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-12-06 17:36:21 +0100
commit37a2cda694ea3e15bff6a96a43e4f015a2471122 (patch)
tree3731c25f86401e1aa1841b2169fcd18905dca90c /CrowIDE/src/DesignInterface.cs
parentdc7a66697113870f8f3a123d040747164fa0d2ab (diff)
wip
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
-rw-r--r--CrowIDE/src/DesignInterface.cs12
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)