diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-25 14:51:07 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-25 14:51:07 +0100 |
| commit | 3cb3ae624a352b92b71a5d7cb19c05f0183f2e43 (patch) | |
| tree | 930d78bb995fda31091e420aefc0d05128d3eea8 /src/GraphicObjects/GraphicObject.cs | |
| parent | 54ff9d82e0d195bc335916b8a30a27651f830502 (diff) | |
debug
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index e8453937..be2bf0e7 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -790,10 +790,7 @@ namespace Crow if (Width > 0) Slot.Width = Width; else if (Width < 0) { - int tmp = measureRawSize (LayoutingType.Width); - if (tmp < 0) - return false; - Slot.Width = tmp; + Slot.Width = measureRawSize (LayoutingType.Width); }else if (Parent.RegisteredLayoutings.HasFlag (LayoutingType.Width)) return false; else @@ -818,10 +815,7 @@ namespace Crow if (Height > 0) Slot.Height = Height; else if (Height < 0){ - int tmp = measureRawSize (LayoutingType.Height); - if (tmp < 0) - return false; - Slot.Height = tmp; + Slot.Height = measureRawSize (LayoutingType.Height); }else if (Parent.RegisteredLayoutings.HasFlag (LayoutingType.Height)) return false; else |