Skip to content

Commit 7e70e7a

Browse files
committed
Maybe stream position should be zero
1 parent 2b08a17 commit 7e70e7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CSharpMath.Maui.Example/MathKeyboard.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Tab CurrentTab {
4242
public void SetButtonsTextColor(Color color, Color? placeholderRestingColor = null, Color? placeholderActiveColor = null) {
4343
foreach (var button in new MathButton[] { ShiftButton, ShiftCapitalsButton }.Concat(TabButtons))
4444
button.TextColor = color;
45-
foreach (var button in new[] { LeftButton, RightButton}
45+
foreach (var button in new[] { LeftButton, RightButton }
4646
.Concat(ButtonGrids.SelectMany(grid => grid.Children)
4747
.Where(child => child is MathInputButton button && button.Input != MathKeyboardInput.Backspace)
4848
.Cast<MathInputButton>())) {

CSharpMath.Maui/Controls/Buttons.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public virtual void ButtonDraw() => Source = ImageSource.FromStream(() => {
3535
var stream = new System.IO.MemoryStream();
3636
painter.DrawToStream(stream);
3737
painter.LaTeX = originalLatexString;
38+
stream.Position = 0;
3839
return stream;
3940
}
4041
}

0 commit comments

Comments
 (0)