Skip to content

Commit f2a13c3

Browse files
author
Florian Krabbenhoeft
committed
Migradoc/DocumentObjectModel/Tables/Row: Made index nullable, rather than NInt.
NOTE: Part of table rendering speedup.
1 parent cdbfc40 commit f2a13c3

File tree

1 file changed

+3
-3
lines changed
  • MigraDocCore.DocumentObjectModel/MigraDoc.DocumentObjectModel.Tables

1 file changed

+3
-3
lines changed

MigraDocCore.DocumentObjectModel/MigraDoc.DocumentObjectModel.Tables/Row.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,16 @@ public int Index
121121
{
122122
get
123123
{
124-
if (IsNull("index"))
124+
if (!index.HasValue)
125125
{
126126
Rows rws = this.parent as Rows;
127127
SetValue("Index", rws.IndexOf(this));
128128
}
129-
return index;
129+
return index.Value;
130130
}
131131
}
132132
[DV]
133-
internal NInt index = NInt.NullValue;
133+
internal int? index;
134134

135135
/// <summary>
136136
/// Gets a cell by its column index. The first cell has index 0.

0 commit comments

Comments
 (0)