Browse Source

add missing log statements.

test-log-box-shadow
Dan Walmsley 6 years ago
parent
commit
e90b26c059
  1. 8
      src/Avalonia.Visuals/Media/DrawingContext.cs

8
src/Avalonia.Visuals/Media/DrawingContext.cs

@ -358,6 +358,10 @@ namespace Avalonia.Media
{
PlatformImpl.PushOpacity(opacity);
}
else
{
Logger.TryGet(LogEventLevel.Warning)?.Log(LogArea.DrawingContext, this, "Invalid Opacity Parameters");
}
return new PushedState(this, PushedState.PushedStateType.Opacity);
}
@ -376,6 +380,10 @@ namespace Avalonia.Media
{
PlatformImpl.PushOpacityMask(mask, bounds);
}
else
{
Logger.TryGet(LogEventLevel.Warning)?.Log(LogArea.DrawingContext, this, "Invalid OpacityMask Parameters");
}
return new PushedState(this, PushedState.PushedStateType.OpacityMask);
}

Loading…
Cancel
Save