Skip to content

Commit aa4e0a1

Browse files
author
jef
committed
remove CRs
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8306 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ef8e342 commit aa4e0a1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/gui/qgsmapcanvas.cpp

+13-13
Original file line numberDiff line numberDiff line change
@@ -447,19 +447,19 @@ void QgsMapCanvas::setExtent(QgsRect const & r)
447447
return;
448448
}
449449

450-
QgsRect current = extent();
451-
452-
if (r.isEmpty())
453-
{
454-
QgsDebugMsg("Empty extent - keeping old extent with new center!");
455-
QgsRect e( QgsPoint( r.center().x()-current.width()/2.0, r.center().y()-current.height()/2.0 ),
456-
QgsPoint( r.center().x()+current.width()/2.0, r.center().y()+current.height()/2.0 ) );
457-
mMapRender->setExtent(e);
458-
}
459-
else
460-
{
461-
mMapRender->setExtent(r);
462-
}
450+
QgsRect current = extent();
451+
452+
if (r.isEmpty())
453+
{
454+
QgsDebugMsg("Empty extent - keeping old extent with new center!");
455+
QgsRect e( QgsPoint( r.center().x()-current.width()/2.0, r.center().y()-current.height()/2.0 ),
456+
QgsPoint( r.center().x()+current.width()/2.0, r.center().y()+current.height()/2.0 ) );
457+
mMapRender->setExtent(e);
458+
}
459+
else
460+
{
461+
mMapRender->setExtent(r);
462+
}
463463
emit extentsChanged();
464464
updateScale();
465465
if (mMapOverview)

0 commit comments

Comments
 (0)