Fix kdevelop crash when used with Asteroid widget style

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1247626 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 7f6ca4f00f
commit 67c0fa6765

@ -1757,7 +1757,7 @@ void AsteroidStyle::tqdrawComplexControl(TQ_ComplexControl cc,
p->drawRect(hr);
if (cb->listBox() && cb->listBox()->isVisible()) {
if ((cb) && (cb->listBox() && cb->listBox()->isVisible())) {
p->setPen(cg.mid());
p->drawRect(hr);
} else {
@ -1777,7 +1777,7 @@ void AsteroidStyle::tqdrawComplexControl(TQ_ComplexControl cc,
TQRect cr(sw - handle_offset-1, y+2, handle_width, sh - 4);
TQRect pmr(0, 0, 7, 4);
pmr.moveCenter(cr.center());
if (cb->listBox() && cb->listBox()->isVisible()) {
if ((cb) && (cb->listBox() && cb->listBox()->isVisible())) {
pmr.moveBy(1, 1);
}

Loading…
Cancel
Save