Browse Source

Prevent stack overflow.

Rect.Inflate(double) was calling itself instead of the Thickness
overload.
pull/387/merge
Steven Kirk 11 years ago
parent
commit
74ed826752
  1. 2
      src/Perspex.SceneGraph/Rect.cs

2
src/Perspex.SceneGraph/Rect.cs

@ -255,7 +255,7 @@ namespace Perspex
/// <returns>The inflated rectangle.</returns>
public Rect Inflate(double thickness)
{
return Inflate(thickness);
return Inflate(new Thickness(thickness));
}
/// <summary>

Loading…
Cancel
Save