Skip to content
Permalink
Browse files

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
g_j_m committed Apr 6, 2006
1 parent ba5d618 commit 5ba27a0fc5815e8e9c6ab7c290be7d0555773ed0
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/gui/qgsproject.cpp
@@ -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);
@@ -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);

0 comments on commit 5ba27a0

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