Ticket #8617: ListWidget.cpp.patch

File ListWidget.cpp.patch, 545 bytes (added by SF/youngelf, 15 years ago)

Patch against the latest 0.9.1 source tree.

Line 
1*** gui/ListWidget.cpp~ Sun Oct 22 13:50:13 2006
2--- gui/ListWidget.cpp Thu Mar 15 21:13:29 2007
3***************
4*** 67,86 ****
5--- 67,87 ----
6 _editable = true;
7
8 _textWidth = new int[_entriesPerPage];
9
10 for (int i = 0; i < _entriesPerPage; i++)
11 _textWidth[i] = 0;
12 }
13
14 ListWidget::~ListWidget() {
15 delete[] _textWidth;
16+ delete _scrollBar;
17 }
18
19 Widget *ListWidget::findWidget(int x, int y) {
20 if (x >= _w - _scrollBarWidth)
21 return _scrollBar;
22
23 return this;
24 }
25
26 void ListWidget::setSelected(int item) {