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/qgis@5464 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed May 16, 2006
1 parent 3071824 commit 999a3c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/qgsvectorlayer.cpp
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 999a3c1

Please sign in to comment.