Added Try/Catch as part of B2017-143 fix to prevent PROMS from crashing

B2017-143  Print was disposing fonts that are save in a static dictionary, causing editor display problems after printing a procedure.
This commit is contained in:
2017-07-14 18:30:57 +00:00
parent c3de2c7a52
commit 2c15add602
2 changed files with 17 additions and 2 deletions

View File

@@ -110,7 +110,13 @@ namespace Volian.Svg.Library
}
set
{
if (_Font != null) _Font.Dispose();
// This was disposing fonts that are saved in our static dictionary.
// caused problems with the step editor display after printing (found with Wolf Creek Chem procedure RW-G02 Step 6.1.17) - jsj 7/14/2017
//if (_Font != null)
//{
// Console.WriteLine("font dispose {0}, {1}", _Font, _Font.Style);
// //_Font.Dispose();
//}
if (value != null)
{
_FontFamily = value.FontFamily.Name;