Skip to content

Commit 09f4ef0

Browse files
committed
XrefDependent
1 parent 3a21ad6 commit 09f4ef0

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using ACadSharp.Tables;
2+
using ACadSharp.Tables.Collections;
3+
using Xunit;
4+
5+
namespace ACadSharp.Tests.Tables
6+
{
7+
public class TextStyleTests : TableEntryCommonTests<TextStyle>
8+
{
9+
[Fact]
10+
public void DefaultEntryTest()
11+
{
12+
var def = TextStyle.Default;
13+
14+
Assert.True(def.Flags.HasFlag(StyleFlags.XrefDependent));
15+
}
16+
17+
protected override Table<TextStyle> getTable(CadDocument document)
18+
{
19+
return document.TextStyles;
20+
}
21+
}
22+
}

src/ACadSharp/Tables/TextStyle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ internal TextStyle() : base() { }
9696
/// <inheritdoc/>
9797
public TextStyle(string name) : base(name)
9898
{
99-
this.Flags = StyleFlags.Referenced;
99+
this.Flags = StyleFlags.XrefDependent;
100100
}
101101
}
102102
}

0 commit comments

Comments
 (0)