From 2cc0b65d414983a51ec1d35a71b49c8e3fe9fc90 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 1 Oct 2017 14:43:01 +0200 Subject: [PATCH] Fix refresh of DisplaySettings in TextEditor. --- ILSpy/Options/DisplaySettingsPanel.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ILSpy/Options/DisplaySettingsPanel.xaml.cs b/ILSpy/Options/DisplaySettingsPanel.xaml.cs index ab07113ff..d4b1ee547 100644 --- a/ILSpy/Options/DisplaySettingsPanel.xaml.cs +++ b/ILSpy/Options/DisplaySettingsPanel.xaml.cs @@ -125,7 +125,8 @@ namespace ICSharpCode.ILSpy.Options else root.Add(section); - currentDisplaySettings = null; // invalidate cached settings + if (currentDisplaySettings != null) + currentDisplaySettings.CopyValues(s); } }