Skip to content

Commit

Permalink
use markerScaleFactor
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5464 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed May 16, 2006
1 parent e8c22b4 commit e316ec4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3073,7 +3073,8 @@ void QgsVectorLayer::drawFeature(QPainter* p, QgsFeature* fet, QgsMapToPixel * t
#endif

transformPoint(x, y, theMapToPixelTransform, projectionsEnabledFlag);
QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
//QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
QPointF pt(x/markerScaleFactor - (marker->width()/2), y/markerScaleFactor - (marker->height()/2));

p->save();
p->scale(markerScaleFactor,markerScaleFactor);
Expand Down Expand Up @@ -3104,7 +3105,8 @@ void QgsVectorLayer::drawFeature(QPainter* p, QgsFeature* fet, QgsMapToPixel * t
#endif

transformPoint(x, y, theMapToPixelTransform, projectionsEnabledFlag);
QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
//QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
QPointF pt(x/markerScaleFactor - (marker->width()/2), y/markerScaleFactor - (marker->height()/2));

#if defined(Q_WS_X11)
// Work around a +/- 32768 limitation on coordinates in X11
Expand Down

0 comments on commit e316ec4

Please sign in to comment.