From 13fa92ea9c52d2540a56f1ce35d5b941e735728b Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 2 Jun 2008 17:39:50 +0000 Subject: [PATCH] Fixed: Cut out from color fields is incorrect. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@950 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/render/value/color.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/value/color.cpp b/src/render/value/color.cpp index 68736ed6..8791ca77 100644 --- a/src/render/value/color.cpp +++ b/src/render/value/color.cpp @@ -58,8 +58,8 @@ void ColorValueViewer::draw(RotatedDC& dc) { // clip away the inside of the rectangle wxRegion r = dc.trRectToRegion(style().getInternalRect()); r.Subtract(dc.trRectToRegion(RealRect( - style().left + style().left_width, - style().top + style().top_width, + style().left_width, + style().top_width, style().width - style().left_width - style().right_width, style().height - style().top_width - style().bottom_width )));