mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user