From cca94688eed4d74df86b163ba617c14bb832a78c Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Mon, 28 Aug 2000 11:37:12 +0000 Subject: [PATCH] do not crash svn path=/trunk/kdebase/kwin/; revision=62082 --- default/kdedefault.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default/kdedefault.cpp b/default/kdedefault.cpp index 8d78f5ac4a..ab19218d23 100644 --- a/default/kdedefault.cpp +++ b/default/kdedefault.cpp @@ -595,6 +595,8 @@ void KDEClient::updateActiveBuffer( bool force ) if( !force && lastWidth == titlebar->geometry().width()) return; + if ( titlebar->geometry().width() <= 0 || titlebar->geometry().height() <= 0 ) + return; lastWidth = titlebar->geometry().width(); activeBuffer.resize(titlebar->geometry().width(),