author | belugas |
Tue, 17 Jun 2008 02:25:45 +0000 | |
changeset 9536 | f62058df57b3 |
parent 9535 | 0250b88672d7 |
child 9537 | 646e36d82dbf |
--- a/src/toolbar_gui.cpp Mon Jun 16 20:16:43 2008 +0000 +++ b/src/toolbar_gui.cpp Tue Jun 17 02:25:45 2008 +0000 @@ -1099,8 +1099,7 @@ } uint extra_spacing_at[] = { 3, 4, 7, 8, 10, 16, 0 }; - /* Yes, it defines about 27 widgets for this toolbar */ - for (uint i = 0, x = 0, j = 0, b = 0; i < 27; i++) { + for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) { switch (i) { case 4: this->widget[i].left = x;