Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove an unnecessary debug message
git-svn-id: http://svn.osgeo.org/qgis/trunk@5189 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 6, 2006
1 parent ba5d618 commit 5ba27a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gui/qgsproject.cpp
Expand Up @@ -912,9 +912,9 @@ static void _setCanvasExtent(QString const &canonicalMapCanvasName,

if (!theMapCanvas)
{
qDebug(("Unable to find canvas widget " + canonicalMapCanvasName).toLocal8Bit().data());

return; // XXX some sort of error value? Exception?
// Don't produce an error message here because _findMapCanvas
// does one already.
return; // XXX some sort of error value? Exception?
}

theMapCanvas->setExtent(newExtent);
Expand Down Expand Up @@ -1125,8 +1125,9 @@ bool QgsProject::read()

// ensure that overview map canvas is set to *entire* extent
QgsRect mapCanvasFullExtent = _getFullExtent("theMapCanvas");
std::cerr <<__FILE__<<__LINE__<<'\n';
_setCanvasExtent("theOverviewCanvas", mapCanvasFullExtent);

std::cerr <<__FILE__<<__LINE__<<'\n';
// now restore the extent for the main canvas
_setCanvasExtent("theMapCanvas", savedExtent);

Expand Down

0 comments on commit 5ba27a0

Please sign in to comment.