mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
fix possible pointer dereference in QPixmapIconEngine::pixmap()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b438e6c37c
commit
73eea5f48b
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ QPixmap QPixmapIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon::St
|
||||||
if (!QPixmapCache::find(key + HexString<uint>(mode), pm)) {
|
if (!QPixmapCache::find(key + HexString<uint>(mode), pm)) {
|
||||||
if (pm.size() != actualSize)
|
if (pm.size() != actualSize)
|
||||||
pm = pm.scaled(actualSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
pm = pm.scaled(actualSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||||
if (pe->mode != mode && mode != QIcon::Normal) {
|
if (pe && pe->mode != mode && mode != QIcon::Normal) {
|
||||||
QStyleOption opt(0);
|
QStyleOption opt(0);
|
||||||
opt.palette = QApplication::palette();
|
opt.palette = QApplication::palette();
|
||||||
QPixmap generated = QApplication::style()->generatedIconPixmap(mode, pm, &opt);
|
QPixmap generated = QApplication::style()->generatedIconPixmap(mode, pm, &opt);
|
||||||
|
|
Loading…
Add table
Reference in a new issue