diff options
author | Lluis Sanchez <slluis.devel@gmail.com> | 2013-11-02 20:53:42 +0400 |
---|---|---|
committer | Lluis Sanchez <slluis.devel@gmail.com> | 2013-11-02 20:53:42 +0400 |
commit | 2a85c62acee1e48eecaaaae3d490ad438e4e3a8e (patch) | |
tree | 2562b4e2e0729df656a6da560cb6ceec1676c522 /Xwt | |
parent | dbd5e8f794a82fd1c5e94138300ade4eceefff32 (diff) | |
parent | ea83d142788c13444123905296a22ec645a81000 (diff) |
Merge pull request #254 from Therzok/master
Fix issues with unassigned readonly fields and a weird conditional check.
Diffstat (limited to 'Xwt')
-rw-r--r-- | Xwt/Xwt/Distance.cs | 2 | ||||
-rwxr-xr-x | Xwt/Xwt/Size.cs | 2 | ||||
-rw-r--r-- | Xwt/Xwt/SizeConstraint.cs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Xwt/Xwt/Distance.cs b/Xwt/Xwt/Distance.cs index 9027c2a4..259afe88 100644 --- a/Xwt/Xwt/Distance.cs +++ b/Xwt/Xwt/Distance.cs @@ -34,7 +34,7 @@ namespace Xwt { double dx, dy; - public static readonly Distance Zero; + public static readonly Distance Zero = new Distance (0d, 0d); public Distance (double dx, double dy) { diff --git a/Xwt/Xwt/Size.cs b/Xwt/Xwt/Size.cs index 65d31c92..4c92b827 100755 --- a/Xwt/Xwt/Size.cs +++ b/Xwt/Xwt/Size.cs @@ -38,7 +38,7 @@ namespace Xwt { { double width, height; - public static readonly Size Zero; + public static readonly Size Zero = new Size (0d, 0d); public Size (double width, double height) { diff --git a/Xwt/Xwt/SizeConstraint.cs b/Xwt/Xwt/SizeConstraint.cs index 016c3ce0..24a269ec 100644 --- a/Xwt/Xwt/SizeConstraint.cs +++ b/Xwt/Xwt/SizeConstraint.cs @@ -33,7 +33,7 @@ namespace Xwt // Since a constraint of '0' is valid, we use NegativeInfinity as a marker for constraint=0. double value; - public static readonly SizeConstraint Unconstrained; + public static readonly SizeConstraint Unconstrained = new SizeConstraint (); static public implicit operator SizeConstraint (double size) { |