summaryrefslogtreecommitdiff
blob: 9fda43ef1b6cdc3f794fb7523e4a0620713abd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: umbrello/umbrello/worktoolbar.cpp
===================================================================
--- umbrello/umbrello/worktoolbar.cpp	(revision 462433)
+++ umbrello/umbrello/worktoolbar.cpp	(revision 462434)
@@ -288,8 +288,7 @@
     KStandardDirs * dirs = KGlobal::dirs();
     QString dataDir = dirs->findResourceDir( "data", "umbrello/pics/object.png" );
     dataDir += "/umbrello/pics/";
-    const size_t n_buttonInfos = sizeof(buttonInfo) /
-                                 (sizeof(ToolBar_Buttons) + sizeof(QString) + sizeof(char*));
+    const size_t n_buttonInfos = sizeof(buttonInfo) / sizeof(ButtonInfo);
 
     m_ToolButtons.insert(tbb_Undefined,
                          ToolButton(i18n("UNDEFINED"),