Skip to content
Permalink
Browse files

round coordinates

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5176 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Apr 5, 2006
1 parent 9c03a12 commit 30d4b24f47b083c91678cf6eb16fac45e92e6db6
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/plugins/grass/qgsgrassedit.cpp
@@ -1519,8 +1519,8 @@ void QgsGrassEdit::displayElement ( int line, const QPen & pen, int size, QPaint
point.setX(mPoints->x[i]);
point.setY(mPoints->y[i]);
mTransform->transform(&point);
pointArray.setPoint( i, static_cast<int>(point.x()),
static_cast<int>(point.y()) );
pointArray.setPoint( i, static_cast<int>(round(point.x())),
static_cast<int>(round(point.y())) );
}

myPainter->setPen ( pen );
@@ -1634,8 +1634,8 @@ void QgsGrassEdit::displayIcon ( double x, double y, const QPen & pen,
point.setY(y);
mTransform->transform(&point);

int px = static_cast<int>(point.x());
int py = static_cast<int>(point.y());
int px = static_cast<int>(round(point.x()));
int py = static_cast<int>(round(point.y()));
int m = (size-1)/2;

QPainter *myPainter;

0 comments on commit 30d4b24

Please sign in to comment.
You can’t perform that action at this time.