~ubuntu-branches/ubuntu/quantal/banshee/quantal-updates

« back to all changes in this revision

Viewing changes to src/Hyena/Hyena.Gui/Hyena.Gui.Canvas/Rect.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin, 9b356d6
  • Date: 2012-03-24 05:37:04 UTC
  • Revision ID: package-import@ubuntu.com-20120324053704-2dt3u0o0ns7uhmfz
Tags: 2.4.0-1ubuntu3
[9b356d6] Add workaround for set_Height exception.
This patch was previously added to the Oneiric release but left out of
Precise to facilitate further testing of the bug. (LP: #873787)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
            get { return w; }
82
82
            set {
83
83
                if (value < 0) {
84
 
                    throw new ArgumentException ();
 
84
                    Log.Warning (String.Format ("Tried to set an invalid width of {0} {1}", value, System.Environment.StackTrace));
 
85
                    value = 0;
85
86
                }
86
87
 
87
88
                w = value;
92
93
            get { return h; }
93
94
            set {
94
95
                if (value < 0) {
95
 
                    throw new ArgumentException ();
 
96
                    Log.Warning (String.Format ("Tried to set an invalid height of {0}: {1}", value, System.Environment.StackTrace));
 
97
                    value = 0;
96
98
                }
97
99
 
98
100
                h = value;