From f2e8fa3289da3ba6a765a8be759c5f74ccf5c101 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 2 Sep 2025 15:17:24 +0800 Subject: [PATCH] enhance: it's not necessary to invalidate measure of `LineModifyTypeMargin` when data context of text-diff-view changed Signed-off-by: leo --- src/Views/TextDiffView.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/TextDiffView.axaml.cs b/src/Views/TextDiffView.axaml.cs index efb5241e..2e222044 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -203,7 +203,7 @@ namespace SourceGit.Views protected override void OnDataContextChanged(EventArgs e) { base.OnDataContextChanged(e); - InvalidateMeasure(); + InvalidateVisual(); } }