Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/XamlMath.Shared/Atoms/CancelAtom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CancelAtom(SourceSpan atomSource, Atom? contentAtom, StrokeBoxMode stroke
protected override Box CreateBoxCore(TexEnvironment environment)
{
var contentBox = _contentAtom is null ? StrutBox.Empty : _contentAtom.CreateBox(environment);
var lineBox = new StrokeBox(_strokeBoxMode)
var lineBox = new StrokeBox(environment, _strokeBoxMode)
{
Height = contentBox.Height,
Depth = contentBox.Depth,
Expand Down
3 changes: 2 additions & 1 deletion src/XamlMath.Shared/Boxes/StrokeBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ internal sealed class StrokeBox : Box
{
private readonly StrokeBoxMode _mode;

public StrokeBox(StrokeBoxMode mode)
public StrokeBox(TexEnvironment environment, StrokeBoxMode mode)
: base(environment)
{
_mode = mode;
}
Expand Down
Loading