- Timestamp:
- 03/23/11 09:28:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAP/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/QAPView.cs
r5723 r5811 144 144 145 145 private void SetupDefaultBitmap() { 146 if (defaultBitmap != null) defaultBitmap.Dispose(); 147 defaultBitmap = new Bitmap(pictureBox.Width, pictureBox.Height); 148 WriteCenteredTextToBitmap(ref defaultBitmap, "No visualization available"); 146 if (defaultBitmap != null) { 147 defaultBitmap.Dispose(); 148 defaultBitmap = null; 149 } 150 if (pictureBox.Width > 0 && pictureBox.Height > 0) { 151 defaultBitmap = new Bitmap(pictureBox.Width, pictureBox.Height); 152 WriteCenteredTextToBitmap(ref defaultBitmap, "No visualization available"); 153 } 149 154 } 150 155 … … 450 455 if (bitmap != null) bitmap.Dispose(); 451 456 bitmap = null; 452 defaultBitmap.Dispose(); 453 defaultBitmap = null; 457 if (defaultBitmap != null) { 458 defaultBitmap.Dispose(); 459 defaultBitmap = null; 460 } 454 461 } 455 462 }
Note: See TracChangeset
for help on using the changeset viewer.