Commit 0d112c25 authored by twanvl's avatar twanvl

Fixed: Cut out from color fields is incorrect.

parent 3ee78aa0
......@@ -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
)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment