Browse Source

Addressed PR feedback.

pull/1349/head
Steven Kirk 9 years ago
parent
commit
9b099de4a4
  1. 2
      src/Avalonia.Visuals/Media/EllipseGeometry.cs
  2. 4
      src/Avalonia.Visuals/Media/Geometry.cs
  3. 4
      src/Avalonia.Visuals/Media/PathGeometry.cs

2
src/Avalonia.Visuals/Media/EllipseGeometry.cs

@ -88,7 +88,5 @@ namespace Avalonia.Media
return geometry; return geometry;
} }
private void RectChanged(AvaloniaPropertyChangedEventArgs e) => InvalidateGeometry();
} }
} }

4
src/Avalonia.Visuals/Media/Geometry.cs

@ -89,7 +89,7 @@ namespace Avalonia.Media
/// <returns><c>true</c> if the geometry contains the point; otherwise, <c>false</c>.</returns> /// <returns><c>true</c> if the geometry contains the point; otherwise, <c>false</c>.</returns>
public bool FillContains(Point point) public bool FillContains(Point point)
{ {
return PlatformImpl?.FillContains(point) ?? false; return PlatformImpl?.FillContains(point) == true;
} }
/// <summary> /// <summary>
@ -100,7 +100,7 @@ namespace Avalonia.Media
/// <returns><c>true</c> if the geometry contains the point; otherwise, <c>false</c>.</returns> /// <returns><c>true</c> if the geometry contains the point; otherwise, <c>false</c>.</returns>
public bool StrokeContains(Pen pen, Point point) public bool StrokeContains(Pen pen, Point point)
{ {
return PlatformImpl?.StrokeContains(pen, point) ?? false; return PlatformImpl?.StrokeContains(pen, point) == true;
} }
/// <summary> /// <summary>

4
src/Avalonia.Visuals/Media/PathGeometry.cs

@ -23,8 +23,8 @@ namespace Avalonia.Media
AvaloniaProperty.Register<PathGeometry, FillRule>(nameof(FillRule)); AvaloniaProperty.Register<PathGeometry, FillRule>(nameof(FillRule));
private PathFigures _figures; private PathFigures _figures;
private IDisposable _figuresObserver = null; private IDisposable _figuresObserver;
private IDisposable _figuresPropertiesObserver = null; private IDisposable _figuresPropertiesObserver;
static PathGeometry() static PathGeometry()
{ {

Loading…
Cancel
Save