Summary: | plastik causes crash while filling table in kopete | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Thomas Vollmer <thomas-ml> |
Component: | kstyle | Assignee: | Sandro Giessl <sgiessl> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | tpr |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thomas Vollmer
2004-02-08 19:26:38 UTC
CVS commit by giessl: renderSurface etc. should never try to paint null pixmaps. CCMAIL: 74604-done@bugs.kde.org M +9 -0 plastik.cpp 1.48 --- kdeartwork/styles/plastik/plastik.cpp #1.47:1.48 @@ -261,4 +261,7 @@ void PlastikStyle::renderContour(QPainte const uint flags) const { + if((r.width() <= 0)||(r.height() <= 0)) + return; + const bool drawLeft = flags&Draw_Left; const bool drawRight = flags&Draw_Right; @@ -374,4 +377,7 @@ void PlastikStyle::renderMask(QPainter * const uint flags) const { + if((r.width() <= 0)||(r.height() <= 0)) + return; + const bool roundUpperLeft = flags&Round_UpperLeft; const bool roundUpperRight = flags&Round_UpperRight; @@ -405,4 +411,7 @@ void PlastikStyle::renderSurface(QPainte const uint flags) const { + if((rect.width() <= 0)||(rect.height() <= 0)) + return; + // generate a unique key for this surface. QString key = QString("s %1 %2 %3 %4 %5 %6 %7") |