From 0b005fefe69b67bf335c3c00944bbac73e8b4831 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 21 Mar 2016 08:53:31 +0100 Subject: remove Bounds rectangle as private field for dims --- src/GraphicObjects/TextRun.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GraphicObjects/TextRun.cs') diff --git a/src/GraphicObjects/TextRun.cs b/src/GraphicObjects/TextRun.cs index 15f024af..021d5654 100644 --- a/src/GraphicObjects/TextRun.cs +++ b/src/GraphicObjects/TextRun.cs @@ -206,7 +206,7 @@ namespace Crow //ignore text alignment if size to content = true //or if text size is larger than client bounds - if (Bounds.Size < 0 || rText.Width > cb.Width) + if (Width < 0 || Height < 0 || rText.Width > cb.Width) { rText.X = cb.X; rText.Y = cb.Y; -- cgit v1.3.1-4-g156e