From b34020efffa22beb32877370d9ba52807960057d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sat, 14 Feb 2009 19:36:40 +0000 Subject: [PATCH] Fix broken assertion. svn path=/trunk/KDE/kdebase/workspace/; revision=926177 --- desktoplayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktoplayout.cpp b/desktoplayout.cpp index bbd37664a8..d260f9001b 100644 --- a/desktoplayout.cpp +++ b/desktoplayout.cpp @@ -45,7 +45,7 @@ void Workspace::setNETDesktopLayout( Qt::Orientation orientation, int width, int Q_UNUSED( startingCorner ); // Not really worth implementing right now. // Calculate valid grid size - assert( width > 0 && height > 0 ); + assert( width > 0 || height > 0 ); if(( width <= 0 ) && ( height > 0 )) width = ( desktopCount_ + height - 1 ) / height; else if(( height <= 0 ) && ( width > 0 ))