File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,15 @@ void QgsComposer::open ( void )
128
128
if ( mFirstTime ) {
129
129
mComposition ->createDefault ();
130
130
mFirstTime = false ;
131
+ show ();
132
+ zoomFull (); // zoomFull() does not work properly until we have called show()
131
133
}
132
134
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
+ }
134
140
}
135
141
136
142
void QgsComposer::removeWidgetChildren ( QWidget *w )
Original file line number Diff line number Diff line change @@ -3103,7 +3103,6 @@ myQPainter.end();
3103
3103
void QgisApp::filePrint ()
3104
3104
{
3105
3105
mComposer ->open ();
3106
- mComposer ->zoomFull ();
3107
3106
}
3108
3107
3109
3108
void QgisApp::saveMapAsImage ()
You can’t perform that action at this time.
0 commit comments