aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Label.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-03-21 08:53:31 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-04-14 12:44:46 +0200
commit0b005fefe69b67bf335c3c00944bbac73e8b4831 (patch)
tree6fef2ccda18e6ae0e26a9f890341c8dacb84e9c5 /src/GraphicObjects/Label.cs
parentb7bd81982e6313237e4062148612f1d27c09f2df (diff)
remove Bounds rectangle as private field for dims
Diffstat (limited to 'src/GraphicObjects/Label.cs')
-rw-r--r--src/GraphicObjects/Label.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs
index 6d0bf471..c28f090c 100644
--- a/src/GraphicObjects/Label.cs
+++ b/src/GraphicObjects/Label.cs
@@ -397,7 +397,7 @@ namespace Crow
Rectangle cb = ClientRectangle;
//ignore text alignment if size to content = true
- if (Bounds.Size < 0)
+ if (Width < 0 || Height < 0)
{
rText.X = cb.X;
rText.Y = cb.Y;