Render: Ensure RenderElement is null if we don't recreate it

rendering
Liza 2023-11-30 14:01:59 +01:00
parent 0d1882d97f
commit 64e576a004
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 3 additions and 0 deletions

View File

@ -297,7 +297,10 @@ internal sealed class FrameworkService : IDisposable
MarkerConfiguration config)
{
if (!config.Show)
{
location.RenderElement = null;
return;
}
var element =
_renderAdapter.CreateElement(location.Type, location.Position, enabled, config.Color, config.Fill);