[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [lightdm/v0.1] greeter: Fix loading user pictures if no requested size has been specified
From:       Aurélien Gâteau <aurelien.gateau () canonical ! com>
Date:       2012-04-24 15:22:28
Message-ID: 20120424152228.DCB81A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 56bf55cb232d7b3a56eaeffbbc1cdf9e4f15822a by Aurélien Gâteau.
Committed on 24/04/2012 at 17:10.
Pushed by gateau into branch 'v0.1'.

Fix loading user pictures if no requested size has been specified

M  +1    -1    greeter/faceimageprovider.cpp

http://commits.kde.org/lightdm/56bf55cb232d7b3a56eaeffbbc1cdf9e4f15822a

diff --git a/greeter/faceimageprovider.cpp b/greeter/faceimageprovider.cpp
index 343b181..73cc331 100644
--- a/greeter/faceimageprovider.cpp
+++ b/greeter/faceimageprovider.cpp
@@ -50,7 +50,7 @@ QPixmap FaceImageProvider::requestPixmap(const QString& id, QSize* size, const Q
 
     // Get user face pixmap
     QPixmap pix;
-    int extent = requestedSize.isValid() ? requestedSize.width() : 0;
+    int extent = requestedSize.isValid() ? requestedSize.width() : KIconLoader::SizeEnormous;
     QIcon icon = userIndex.data(Qt::DecorationRole).value<QIcon>();
     if (!icon.isNull()) {
         pix = icon.pixmap(extent);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic