do not crash

svn path=/trunk/kdebase/kwin/; revision=62082
This commit is contained in:
Matthias Ettrich 2000-08-28 11:37:12 +00:00
parent 87931a071a
commit cca94688ee

View file

@ -595,6 +595,8 @@ void KDEClient::updateActiveBuffer( bool force )
if( !force && lastWidth == titlebar->geometry().width()) if( !force && lastWidth == titlebar->geometry().width())
return; return;
if ( titlebar->geometry().width() <= 0 || titlebar->geometry().height() <= 0 )
return;
lastWidth = titlebar->geometry().width(); lastWidth = titlebar->geometry().width();
activeBuffer.resize(titlebar->geometry().width(), activeBuffer.resize(titlebar->geometry().width(),