Use method from VE_Font to get a font reference (uses dictionary so redundant Window Handles are not created) B2017-117
Add a Using statement when we temporarily create a RichTextBox to ensure the Window Handle is free’d. Also use method from VE_Font to get a font reference (uses dictionary so redundant Window Handles are not created) B2017-117
This commit is contained in:
@@ -1360,7 +1360,11 @@ namespace Volian.Print.Library
|
||||
// to do that was to add a "{PAGE}" token to every page that is flagged as not to be printed.
|
||||
if (sPag == SectionConfig.SectionPagination.Separate)
|
||||
{
|
||||
SvgText st = new SvgText(new System.Drawing.PointF(300, 300), "Non-printing {PAGE}", new System.Drawing.Font("Arial", 10), System.Drawing.Color.Black);
|
||||
// follow through in fixing an Out of Window Handles bug, use new function to see if
|
||||
// we can retrieve the font from a dictionary instead a doing a New and using another
|
||||
// window handle B2017-117
|
||||
//SvgText st = new SvgText(new System.Drawing.PointF(300, 300), "Non-printing {PAGE}", new System.Drawing.Font("Arial", 10), System.Drawing.Color.Black);
|
||||
SvgText st = new SvgText(new System.Drawing.PointF(300, 300), "Non-printing {PAGE}", VE_Font.GetWinSysFont("Arial", 10), System.Drawing.Color.Black);
|
||||
svgGroup.Add(st);
|
||||
}
|
||||
if (svgGroup.Count>0) mySvg.Add(svgGroup);
|
||||
|
Reference in New Issue
Block a user