Skip to content
Permalink
Browse files
use markerScaleFactor
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 e316ec401509da723f877e7d4f4ef065330be95d
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gui/qgsvectorlayer.cpp
@@ -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);
@@ -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

0 comments on commit e316ec4

Please sign in to comment.