From kde-commits Fri Jan 25 21:48:00 2008 From: Andre Moreira Magalhaes Date: Fri, 25 Jan 2008 21:48:00 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/tasks Message-Id: <1201297680.284088.25525.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120129769021792 SVN commit 766447 by andrunko: Proper layout text on taskbar item. M +4 -2 abstracttaskitem.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/tasks/abstracttaskitem.cpp #766446:766447 @@ -290,8 +290,10 @@ // Make the last line that will fit infinitely long. // drawTextLayout() will handle this by fading the line out // if it won't fit in the contraints. - if (height + 2 * lineSpacing > constraints.height()) - maxWidth = INT_MAX; + if (height + 2 * lineSpacing > constraints.height()) { + line.setPosition(QPoint(0, height)); + break; + } line.setLineWidth(maxWidth); line.setPosition(QPoint(0, height));