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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user