summaryrefslogtreecommitdiff
path: root/src/gui/gui_listview.pas
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui_listview.pas')
-rw-r--r--src/gui/gui_listview.pas5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/gui_listview.pas b/src/gui/gui_listview.pas
index 52a0946d..62c3cbd1 100644
--- a/src/gui/gui_listview.pas
+++ b/src/gui/gui_listview.pas
@@ -1398,10 +1398,11 @@ begin
Canvas.SetClipRect(iColumnClipRect);
if FColumns.Column[J].ColumnIndex <> -1 then
ColumnIndex := FColumns.Column[J].ColumnIndex
- else ColumnIndex := J;
+ else
+ ColumnIndex := J;
if ColumnIndex = 0 then
TheText := Item.Caption
- else if item.SubItems.Count > ColumnIndex then
+ else if Item.SubItems.Count > ColumnIndex then
TheText := Item.SubItems.Strings[ColumnIndex-1]
else
TheText := '';