Skip to content

Commit

Permalink
Fix for ticket #830 (print composer pane is wrong on first running of
Browse files Browse the repository at this point in the history
qgis)


git-svn-id: http://svn.osgeo.org/qgis/trunk@7812 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 27, 2007
1 parent 11a92b5 commit 9546139
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,15 @@ void QgsComposer::restoreWindowState()
{
QSettings settings;
restoreGeometry(settings.value("/Composer/geometry").toByteArray());
mSplitter->restoreState(settings.value("/Composer/splitterState").toByteArray());
QVariant splitterState = settings.value("/Composer/splitterState");
if (splitterState != QVariant::QVariant())
mSplitter->restoreState(settings.value("/Composer/splitterState").toByteArray());
else
{
QList<int> defaultSize;
defaultSize << 300 << 100;
mSplitter->setSizes(defaultSize);
}
}

void QgsComposer::on_helpPButton_clicked()
Expand Down

0 comments on commit 9546139

Please sign in to comment.