Fixed Incorrect Null Check (#72)
* Fixed null check to check styleToUse instead of styledText. * no message
This commit is contained in:
Родитель
8d1c73d0e6
Коммит
4da86ac412
|
@ -805,7 +805,7 @@ namespace Topten.RichTextKit.Editor
|
|||
}
|
||||
|
||||
var styledText = new StyledText(codePoints);
|
||||
if (styledText != null)
|
||||
if (styleToUse != null)
|
||||
{
|
||||
styledText.ApplyStyle(0, styledText.Length, styleToUse);
|
||||
}
|
||||
|
|
|
@ -20,12 +20,14 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="2.8.2.3" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="SkiaSharp" Version="2.88.3" />
|
||||
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.3" />
|
||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче