In the GdiGraohicsRender this code;
private SvgRectF GetElementBounds(SvgTransformableElement element, float margin)
{
SvgRenderingHint hint = element.RenderingHint;
if (hint == SvgRenderingHint.Shape || hint == SvgRenderingHint.Text)
{
GraphicsPath gp = GdiRendering.CreatePath(element);
ISvgMatrix svgMatrix = element.GetScreenCTM();
is called when GetBBox is called on a Text element. GdiRendering.CreatePath returns null for a text element which then means the gp.GetBounds(matrix) blows up with a null reference exception.
In the GdiGraohicsRender this code; private SvgRectF GetElementBounds(SvgTransformableElement element, float margin) { SvgRenderingHint hint = element.RenderingHint; if (hint == SvgRenderingHint.Shape || hint == SvgRenderingHint.Text) { GraphicsPath gp = GdiRendering.CreatePath(element); ISvgMatrix svgMatrix = element.GetScreenCTM();
is called when GetBBox is called on a Text element. GdiRendering.CreatePath returns null for a text element which then means the gp.GetBounds(matrix) blows up with a null reference exception.
This work item was migrated from CodePlex
CodePlex work item ID: '1751' Vote count: '1'