From 3ef36aec5f96de1eb8a32a67f5aae7ef1ccb786f Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 30 Nov 2023 20:22:43 +1000 Subject: [PATCH] Fix .NET 7 warnings --- .../Tables/AdvancedTypographic/Shapers/IndicShaper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SixLabors.Fonts/Tables/AdvancedTypographic/Shapers/IndicShaper.cs b/src/SixLabors.Fonts/Tables/AdvancedTypographic/Shapers/IndicShaper.cs index 6c212768..b77d1a66 100644 --- a/src/SixLabors.Fonts/Tables/AdvancedTypographic/Shapers/IndicShaper.cs +++ b/src/SixLabors.Fonts/Tables/AdvancedTypographic/Shapers/IndicShaper.cs @@ -52,9 +52,9 @@ public IndicShaper(ScriptClass script, Tag unicodeScriptTag, TextOptions textOpt { this.textOptions = textOptions; - if (IndicConfigurations.ContainsKey(script)) + if (IndicConfigurations.TryGetValue(script, out ShapingConfiguration value)) { - this.indicConfiguration = IndicConfigurations[script]; + this.indicConfiguration = value; } else {