diff --git a/kstyle/breezehelper.cpp b/kstyle/breezehelper.cpp index feb98cc1..9db66ef1 100644 --- a/kstyle/breezehelper.cpp +++ b/kstyle/breezehelper.cpp @@ -1617,8 +1617,7 @@ QPixmap Helper::coloredIcon(const QIcon &icon, const QPalette &palette, const QS if (changePalette) { KIconLoader::global()->setCustomPalette(palette); } - const QSize actualSize = icon.actualSize(size, mode, state); - const QPixmap pixmap = icon.pixmap(actualSize, mode, state); + const QPixmap pixmap = icon.pixmap(size, mode, state); if (changePalette) { if (activePalette == QPalette()) { KIconLoader::global()->resetPalette(); diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index de76ae69..df09e469 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5335,7 +5335,6 @@ bool Style::drawMenuItemControl(const QStyleOption *option, QPainter *painter, c // icon state const QIcon::State iconState(sunken ? QIcon::On : QIcon::Off); const QPixmap icon = _helper->coloredIcon(menuItemOption->icon, menuItemOption->palette, iconRect.size(), mode, iconState); - iconRect = centerRect(iconRect, icon.size()); painter->drawPixmap(iconRect, icon); }