Skip to content

Commit 999a3c1

Browse files
author
rblazek
committed
use markerScaleFactor
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5464 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3071824 commit 999a3c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gui/qgsvectorlayer.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,8 @@ void QgsVectorLayer::drawFeature(QPainter* p, QgsFeature* fet, QgsMapToPixel * t
30733073
#endif
30743074

30753075
transformPoint(x, y, theMapToPixelTransform, projectionsEnabledFlag);
3076-
QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
3076+
//QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
3077+
QPointF pt(x/markerScaleFactor - (marker->width()/2), y/markerScaleFactor - (marker->height()/2));
30773078

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

31063107
transformPoint(x, y, theMapToPixelTransform, projectionsEnabledFlag);
3107-
QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
3108+
//QPointF pt(x - (marker->width()/2), y - (marker->height()/2));
3109+
QPointF pt(x/markerScaleFactor - (marker->width()/2), y/markerScaleFactor - (marker->height()/2));
31083110

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

0 commit comments

Comments
 (0)