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

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

SVN commit 1217578 by aseigo:

abstractItem can be null
BUG:264079


 M  +1 -1      taskitemlayout.cpp  


--- trunk/KDE/kdebase/workspace/plasma/desktop/applets/tasks/taskitemlayout.cpp \
#1217577:1217578 @@ -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