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/qgis@7812 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 27, 2007
1 parent 59cae05 commit 8015cd4
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 8015cd4

Please sign in to comment.