Skip to content

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎src/app/composer/qgscomposer.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,15 @@ void QgsComposer::open ( void )
128128
if ( mFirstTime ) {
129129
mComposition->createDefault();
130130
mFirstTime = false;
131+
show();
132+
zoomFull(); // zoomFull() does not work properly until we have called show()
131133
}
132134

133-
show();
135+
else{
136+
show(); //make sure the window is displayed - with a saved project, it's possible to not have already called show()
137+
//is that a bug?
138+
raise(); //bring the composer window to the front
139+
}
134140
}
135141

136142
void QgsComposer::removeWidgetChildren ( QWidget *w )

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3103,7 +3103,6 @@ myQPainter.end();
31033103
void QgisApp::filePrint()
31043104
{
31053105
mComposer->open();
3106-
mComposer->zoomFull();
31073106
}
31083107

31093108
void QgisApp::saveMapAsImage()

0 commit comments

Comments
 (0)
Please sign in to comment.