Skip to content

Commit

Permalink
fix(improvements): fix the reading of the Output cell in TextChunk
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Oct 31, 2023
1 parent 45f3eab commit 2366e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YDotNet/Document/Types/Texts/TextChunk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public class TextChunk
{
internal TextChunk(NativeWithHandle<TextChunkNative> native, Doc doc)
{
Data = new Output(native.Value.Data, doc, isDeleted: false);
// `Handle` is used because the `OutputNative` is located at the head of `TextChunkNative`.
Data = new Output(native.Handle, doc, isDeleted: false);

Attributes = native.Value.Attributes()
.ToDictionary(
Expand Down

0 comments on commit 2366e0f

Please sign in to comment.