diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-16 17:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-16 17:45:53 +0000 |
commit | 67c0fa67658364bd51dc140132c99294a9b4082e (patch) | |
tree | 221ad9d57a2c50dd237d71594ec062858ca1d9e9 /kstyles/asteroid/asteroid.cpp | |
parent | 7f6ca4f00f74d7c5fe4942c897a3836b0c67bf69 (diff) | |
download | tdelibs-67c0fa67658364bd51dc140132c99294a9b4082e.tar.gz tdelibs-67c0fa67658364bd51dc140132c99294a9b4082e.zip |
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
Diffstat (limited to 'kstyles/asteroid/asteroid.cpp')
-rw-r--r-- | kstyles/asteroid/asteroid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kstyles/asteroid/asteroid.cpp b/kstyles/asteroid/asteroid.cpp index 22850902b..b3d1ba19e 100644 --- a/kstyles/asteroid/asteroid.cpp +++ b/kstyles/asteroid/asteroid.cpp @@ -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); } |