[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/chartshape/kdchart/src
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2010-10-17 21:42:13
Message-ID: 20101017214213.AF9EDAC898 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1186906 by jsimon:
Do not adjust border but instead do not clip so that border doesn't get cut off. We \
can't use one-pixel-offsets as they look obscure when zoom level is != 100% where a \
width of 1 here isn't one pixel anymore on screen (but instead maybe 10 or 20).
M +2 -2 KDChartAbstractAreaBase.cpp
--- trunk/koffice/plugins/chartshape/kdchart/src/KDChartAbstractAreaBase.cpp \
#1186905:1186906 @@ -134,7 +134,7 @@
const QPointF newTopLeft( painter.deviceMatrix().map( rect.topLeft() ) );
painter.setBrushOrigin( newTopLeft );
painter.setBrush( attributes.brush() );
- painter.drawRect( rect.adjusted( 0, 0, -1, -1 ) );
+ painter.drawRect( rect );
}
/* next draw the backPixmap over the brush */
if( !attributes.pixmap().isNull() &&
@@ -186,7 +186,7 @@
const QBrush oldBrush( painter.brush() );
painter.setPen( PrintingParameters::scalePen( attributes.pen() ) );
painter.setBrush( Qt::NoBrush );
- painter.drawRect( rect.adjusted( 0, 0, -1, -1 ) );
+ painter.drawRect( rect );
painter.setBrush( oldBrush );
painter.setPen( oldPen );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic