Skip to content

Commit 42ed674

Browse files
committed
fix: crash due to Bounds.With returns zero
Signed-off-by: leo <longshuang@msn.cn>
1 parent eb6d77f commit 42ed674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/Avatar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override void Render(DrawingContext context)
6969
CultureInfo.CurrentCulture,
7070
FlowDirection.LeftToRight,
7171
typeface,
72-
Bounds.Width * 0.65,
72+
Math.Max(Bounds.Width * 0.65, 10),
7373
Brushes.White);
7474

7575
var chars = fallback.ToCharArray();

0 commit comments

Comments
 (0)