changeset 1289:b317bfe7cf6f

minor simplification
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 31 Aug 2009 22:09:34 +0200
parents a07f81bb47c0
children b91adf535e17
files dw/style.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/style.cc	Sun Aug 30 18:18:36 2009 +0000
+++ b/dw/style.cc	Mon Aug 31 22:09:34 2009 +0200
@@ -475,8 +475,8 @@
 
    xb1 = x + style->margin.left;
    yb1 = y + style->margin.top;
-   xb2 = xb1 + width - style->margin.left - style->margin.right;
-   yb2 = yb1 + height - style->margin.top - style->margin.bottom;
+   xb2 = x + width - style->margin.right;
+   yb2 = y + height - style->margin.bottom;
 
    xp1 = xb1 + style->borderWidth.top;
    yp1 = yb1 + style->borderWidth.left;