another null pointer check

svn path=/trunk/KDE/kdelibs/; revision=1027780
This commit is contained in:
Marco Martin 2009-09-24 18:52:58 +00:00
parent 03c1fca71d
commit bb11bbf81b

View File

@ -339,7 +339,7 @@ void TabBar::setCurrentIndex(int index)
d->newPage = 0;
}
if (d->newPage) {
if (d->newPage && d->oldPage) {
d->newPage->resize(d->oldPage->size());
}