Skip to content
Permalink
Browse files

Revert "Fix glitch on mouse-wheel zoom event"

This reverts commit 40e0d78.

Fixed the mouse wheel zoom regression but it broke proper rendering
of rotated maps...
  • Loading branch information
Sandro Santilli
Sandro Santilli committed Dec 12, 2014
1 parent 69b27f0 commit fd15a168b23a1d05531e65281d786f65e52be8d4
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/gui/qgsmapcanvasmap.cpp
@@ -50,14 +50,6 @@ void QgsMapCanvasMap::paint( QPainter* painter )
if ( mImage.size() != QSize( w, h ) )
{
QgsDebugMsg( QString( "map paint DIFFERENT SIZE: img %1,%2 item %3,%4" ).arg( mImage.width() ).arg( mImage.height() ).arg( w ).arg( h ) );
}

// TODO: this is an hack, we should instead make sure that
// the image passed here from QgsMapCanvas, via setContent,
// is pre-clipped in case of rotation.
// See http://hub.qgis.org/issues/11811
if ( ( mImage.width() > w && mImage.height() < h ) ||
( mImage.height() > h && mImage.width() < w ) ) {
int tX = ( w - mImage.width() ) / 2.0;
int tY = ( h - mImage.height() ) / 2.0;
int fX = 0;

0 comments on commit fd15a16

Please sign in to comment.
You can’t perform that action at this time.