diff --git a/src/plugins/coordinate_capture/coordinate_capture.svg b/src/plugins/coordinate_capture/coordinate_capture.svg index 305259f26a8..74c91e02ab6 100644 --- a/src/plugins/coordinate_capture/coordinate_capture.svg +++ b/src/plugins/coordinate_capture/coordinate_capture.svg @@ -15,7 +15,10 @@ inkscape:version="0.46" version="1.0" sodipodi:docname="coordinate_capture.svg" - inkscape:output_extension="org.inkscape.output.svg.inkscape"> + inkscape:output_extension="org.inkscape.output.svg.inkscape" + inkscape:export-filename="/home/timlinux/dev/cpp/qgis/src/plugins/coordinate_capture/coordinatecapture.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90"> setColor(Qt::red); + mpRubberBand->setWidth(3); } CoordinateCaptureMapTool::~CoordinateCaptureMapTool() @@ -58,13 +60,15 @@ void CoordinateCaptureMapTool::canvasReleaseEvent(QMouseEvent * thepEvent) return; } - mpRubberBand->reset(false); - - // convert screen coordinates to map coordinates QgsPoint myPoint = mCanvas->getCoordinateTransform()->toMapCoordinates(thepEvent->x(), thepEvent->y()); - mpRubberBand->addPoint(myPoint,true); //true - update canvas emit pointCaptured(myPoint); + mpRubberBand->reset(false); + // convert screen coordinates to map coordinates + mpRubberBand->addPoint(myPoint,false); //true - update canvas + mpRubberBand->addPoint(myPoint,false); //true - update canvas + mpRubberBand->addPoint(myPoint,false); //true - update canvas + mpRubberBand->show(); }