Skip to content

Commit 4da86ac

Browse files
Fixed Incorrect Null Check (toptensoftware#72)
* Fixed null check to check styleToUse instead of styledText. * no message
1 parent 8d1c73d commit 4da86ac

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Topten.RichTextKit/Editor/TextDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ public void ReplaceText(ITextDocumentView view, TextRange range, Slice<int> code
805805
}
806806

807807
var styledText = new StyledText(codePoints);
808-
if (styledText != null)
808+
if (styleToUse != null)
809809
{
810810
styledText.ApplyStyle(0, styledText.Length, styleToUse);
811811
}

Topten.RichTextKit/Topten.RichTextKit.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23+
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="2.8.2.3" />
2324
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
2425
<PrivateAssets>all</PrivateAssets>
2526
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2627
</PackageReference>
2728
<PackageReference Include="SkiaSharp" Version="2.88.3" />
2829
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.3" />
30+
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.3" />
2931
</ItemGroup>
3032

3133
</Project>

0 commit comments

Comments
 (0)