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
This commit is contained in:
twanvl
2008-06-02 17:39:50 +00:00
parent 67fedbfcfe
commit 13fa92ea9c
+2 -2
View File
@@ -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
)));