From d281277665fb7a8af6d4a76009dab79281e6fc8e Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Sat, 26 May 2012 20:09:32 +0200 Subject: [PATCH] fix #4843 again --- src/app/qgshighlight.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/app/qgshighlight.cpp b/src/app/qgshighlight.cpp index c97dd8bff6f6..f3baf40be113 100644 --- a/src/app/qgshighlight.cpp +++ b/src/app/qgshighlight.cpp @@ -69,11 +69,6 @@ void QgsHighlight::paintPoint( QPainter *p, QgsPoint point ) { QPolygonF r( 5 ); - if ( mLayer ) - { - point = mMapCanvas->mapRenderer()->layerToMapCoordinates( mLayer, point ); - } - double d = mMapCanvas->extent().width() * 0.005; r[0] = toCanvasCoordinates( point + QgsVector( -d, -d ) ) - pos(); r[1] = toCanvasCoordinates( point + QgsVector( d, -d ) ) - pos(); @@ -90,11 +85,6 @@ void QgsHighlight::paintLine( QPainter *p, QgsPolyline line ) for ( int i = 0; i < line.size(); i++ ) { - if ( mLayer ) - { - line[i] = mMapCanvas->mapRenderer()->layerToMapCoordinates( mLayer, line[i] ); - } - polygon[i] = toCanvasCoordinates( line[i] ) - pos(); } @@ -115,11 +105,6 @@ void QgsHighlight::paintPolygon( QPainter *p, QgsPolygon polygon ) for ( int j = 0; j < polygon[i].size(); j++ ) { - if ( mLayer ) - { - polygon[i][j] = mMapCanvas->mapRenderer()->layerToMapCoordinates( mLayer, polygon[i][j] ); - } - ring[ j ] = toCanvasCoordinates( polygon[i][j] ) - pos(); }