Set usable destop layout default if none is given.

svn path=/trunk/KDE/kdebase/workspace/; revision=671715
This commit is contained in:
Luboš Luňák 2007-06-05 12:41:15 +00:00
parent 5389d4afab
commit ba8b014c82

View file

@ -1693,6 +1693,8 @@ void Workspace::updateDesktopLayout()
? Qt::Horizontal : Qt::Vertical );
layoutX = rootInfo->desktopLayoutColumnsRows().width();
layoutY = rootInfo->desktopLayoutColumnsRows().height();
if( layoutX == 0 && layoutY == 0 ) // not given, set default layout
layoutY = 2;
}
void Workspace::calcDesktopLayout(int* xp, int* yp, Qt::Orientation* orientation) const