Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SVG Exporter label issue (Read 241 times)
MikeB
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Apr 24th, 2024
SVG Exporter label issue
May 7th, 2024 at 10:20am
Print Post  
Hi,

I,ve got exception if i use SVG Exporter for Nodes that has the label containing character "-".

Code (C++)
Select All
public MainWindow()
{
    InitializeComponent();

    var shapeNode = new ShapeNode()
    {
        Shape = new Shape(new ElementTemplate[]
        {
            new LineTemplate(0, 0, 100, 0),
            new LineTemplate(100, 0, 100, 100),
            new LineTemplate(100, 100, 0, 100),
        }, FillRule.EvenOdd),
    };

    shapeNode.AddLabel(new NodeLabel() { Text = "Label - 1" });

    diagram.Nodes.Add(shapeNode);
    diagram.Nodes.First().Move(50, 50);
}

private void diagram_DoubleClicked(object sender, DiagramEventArgs e)
{
    SvgExporter svgExporter = new SvgExporter();
    svgExporter.Export(diagram, @"D:\temp\diagram.svg");
}
 



  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3228
Joined: Oct 19th, 2005
Re: SVG Exporter label issue
Reply #1 - May 7th, 2024 at 5:53pm
Print Post  
Hi,

This build should fix the exception -

https://mindfusion.eu/_temp/wpfdiag_svgex.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
MikeB
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Apr 24th, 2024
Re: SVG Exporter label issue
Reply #2 - May 8th, 2024 at 7:33am
Print Post  
Hi,

Thanks, now it works perfectly Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint