diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-07 22:04:22 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-07 22:04:22 +0100 |
commit | a67076fd319758a6e04c6a7a920f635b2711d064 (patch) | |
tree | cdf874f48691159a54dffaf038f4e0e663d1ccdb | |
parent | f1f5584a61355333513e633176070337b0455991 (diff) |
make sure color is set properly in drawBorder()
-rw-r--r-- | dw/style.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/style.cc b/dw/style.cc index 9c68e01d..f33a3a9f 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -515,22 +515,22 @@ void drawBorder (View *view, Rectangle *area, break; } - if (style->borderStyle.top != BORDER_NONE) + if (style->borderStyle.top != BORDER_NONE && style->borderColor.top) drawPolygon (view, style->borderColor.top, top, xb1, yb1, xb2, yb1, style->borderWidth.top, style->borderWidth.left, - style->borderWidth.right); - if (style->borderStyle.right != BORDER_NONE) + if (style->borderStyle.right != BORDER_NONE && style->borderColor.right) drawPolygon (view, style->borderColor.right, right, xb2, yb1, xb2, yb2, - style->borderWidth.right, style->borderWidth.top, - style->borderWidth.bottom); - if (style->borderStyle.bottom != BORDER_NONE) + if (style->borderStyle.bottom != BORDER_NONE && style->borderColor.bottom) drawPolygon (view, style->borderColor.bottom, bottom, xb1, yb2, xb2, yb2, - style->borderWidth.bottom, style->borderWidth.left, - style->borderWidth.right); - if (style->borderStyle.left != BORDER_NONE) + if (style->borderStyle.left != BORDER_NONE && style->borderColor.left) drawPolygon (view, style->borderColor.left, left, xb1, yb1, xb1, yb2, style->borderWidth.left, style->borderWidth.top, - style->borderWidth.bottom); |