Changeset 3646


Ignore:
Timestamp:
05/05/10 17:56:35 (12 years ago)
Author:
mkommend
Message:

added checks of viewpanel size in ViewHost (ticket #972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs

    r3572 r3646  
    138138        throw new InvalidOperationException(string.Format("View \"{0}\" cannot display content \"{1}\".",
    139139                                                          viewType, Content.GetType()));
     140      if (viewPanel.Height <= 10 || viewPanel.Width <= 10)
     141        return;
    140142
    141143      UpdateActiveMenuItem();
Note: See TracChangeset for help on using the changeset viewer.