Skip to content

Commit 5ba27a0

Browse files
author
g_j_m
committed
Remove an unnecessary debug message
git-svn-id: http://svn.osgeo.org/qgis/trunk@5189 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ba5d618 commit 5ba27a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/gui/qgsproject.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,9 @@ static void _setCanvasExtent(QString const &canonicalMapCanvasName,
912912

913913
if (!theMapCanvas)
914914
{
915-
qDebug(("Unable to find canvas widget " + canonicalMapCanvasName).toLocal8Bit().data());
916-
917-
return; // XXX some sort of error value? Exception?
915+
// Don't produce an error message here because _findMapCanvas
916+
// does one already.
917+
return; // XXX some sort of error value? Exception?
918918
}
919919

920920
theMapCanvas->setExtent(newExtent);
@@ -1125,8 +1125,9 @@ bool QgsProject::read()
11251125

11261126
// ensure that overview map canvas is set to *entire* extent
11271127
QgsRect mapCanvasFullExtent = _getFullExtent("theMapCanvas");
1128+
std::cerr <<__FILE__<<__LINE__<<'\n';
11281129
_setCanvasExtent("theOverviewCanvas", mapCanvasFullExtent);
1129-
1130+
std::cerr <<__FILE__<<__LINE__<<'\n';
11301131
// now restore the extent for the main canvas
11311132
_setCanvasExtent("theMapCanvas", savedExtent);
11321133

0 commit comments

Comments
 (0)