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

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/workspace/plasma/desktop/applets/tasks
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-27 23:04:48
Message-ID: 20110127230448.E9AFBAC8BB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1217580 by aseigo:

abstractItem can be null
BUG:264079


 M  +1 -1      taskitemlayout.cpp  


--- branches/KDE/4.6/kdebase/workspace/plasma/desktop/applets/tasks/taskitemlayout.cpp \
#1217579:1217580 @@ -244,7 +244,7 @@
             qreal horizontalSpace = m_groupItem->geometry().width();
             int numberOflaunchers = 0;
             foreach (AbstractTaskItem *item, m_itemPositions) {
-                if (item->abstractItem()->itemType() == \
TaskManager::LauncherItemType) { +                if (item->abstractItem() && \
                item->abstractItem()->itemType() == TaskManager::LauncherItemType) {
                     horizontalSpace -= item->preferredHeight(); //The icon is a \
square so we can use the height as width  numberOflaunchers++;
                 }


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

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