Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Creating multiple row Text entity corrupts output file #472

@schebotar

Description

@schebotar

Hello
Affected code is

using netDxf;
using netDxf.Entities;

var invalid = new DxfDocument();
var text = new Text("Multiply\nrows\ntext");
invalid.Entities.Add(text);
invalid.Save("invalid.dxf");

var valid = new DxfDocument();
text = new Text("One row text");
valid.Entities.Add(text);
valid.Save("valid.dxf");

The first one should throw an Argument exception because text entity does not support multiple rows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions