File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -912,9 +912,9 @@ static void _setCanvasExtent(QString const &canonicalMapCanvasName,
912
912
913
913
if (!theMapCanvas)
914
914
{
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?
918
918
}
919
919
920
920
theMapCanvas->setExtent (newExtent);
@@ -1125,8 +1125,9 @@ bool QgsProject::read()
1125
1125
1126
1126
// ensure that overview map canvas is set to *entire* extent
1127
1127
QgsRect mapCanvasFullExtent = _getFullExtent (" theMapCanvas" );
1128
+ std::cerr <<__FILE__<<__LINE__<<' \n ' ;
1128
1129
_setCanvasExtent (" theOverviewCanvas" , mapCanvasFullExtent);
1129
-
1130
+ std::cerr <<__FILE__<<__LINE__<< ' \n ' ;
1130
1131
// now restore the extent for the main canvas
1131
1132
_setCanvasExtent (" theMapCanvas" , savedExtent);
1132
1133
You can’t perform that action at this time.
0 commit comments