Skip to content

Commit 89c145a

Browse files
StevenBStevenB
StevenB
authored and
StevenB
committed
Fixed bug 826.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7643 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c32914f commit 89c145a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/app/composer/qgscomposer.cpp

+7-1
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

-1
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)