[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: [kopete-devel] [Bug 101665] Contact photos wider than they are tall
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2005-03-31 8:28:52
Message-ID: 20050331082852.4642.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=101665
ogoffart kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ogoffart kde org 2005-03-31 10:28 -------
CVS commit by ogoffart:
Fix Bug 101665: Contact photos wider than they are tall don't keep their correct \
aspect
BUG: 101665
M +2 -4 kopetemetacontactlvi.cpp 1.116
--- kdenetwork/kopete/kopete/contactlist/kopetemetacontactlvi.cpp #1.115:1.116
@ -525,14 +525,12 @ void KopeteMetaContactLVI::slotPhotoChan
{
int photoSize = d->photoSize;
- float ratio = \
float(photoImg.width())/float(photoImg.height());
- int newsize =int(float(photoSize*ratio));
if ( photoImg.width() > photoImg.height() )
{
- photoImg = photoImg.smoothScale( photoSize, newsize \
); + photoImg = photoImg.smoothScale( photoSize, \
photoSize * photoImg.height() / photoImg.width() ) ; }
else
{
- photoImg = photoImg.smoothScale( newsize, photoSize \
); + photoImg = photoImg.smoothScale( photoSize * \
photoImg.width() / photoImg.height() , photoSize ); }
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic