fix: crash due to Bounds.With returns zero

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-09-18 17:46:40 +08:00
parent eb6d77f856
commit 42ed6749d5

View File

@@ -69,7 +69,7 @@ namespace SourceGit.Views
CultureInfo.CurrentCulture,
FlowDirection.LeftToRight,
typeface,
Bounds.Width * 0.65,
Math.Max(Bounds.Width * 0.65, 10),
Brushes.White);
var chars = fallback.ToCharArray();