summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-02-24 19:37:17 +0200
committerErnestas Kulik <ernestask@gnome.org>2018-05-22 16:52:48 +0300
commit0aca206f8a47c3b35d3d0bc2964e5f672d7a3794 (patch)
treeebbd86a172530080de2822b476b4555fa04b5f6b
parentaf57c3e39a100f26addb88fc531c7188716f5758 (diff)
downloadnautilus-0aca206f8a47c3b35d3d0bc2964e5f672d7a3794.tar.gz
list-model: fix boolean expression
We’re checking if the column index is in the range, so using OR is not the right way to do that.
-rw-r--r--src/nautilus-list-model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-list-model.c b/src/nautilus-list-model.c
index 177491dac..e700669e7 100644
--- a/src/nautilus-list-model.c
+++ b/src/nautilus-list-model.c
@@ -444,7 +444,7 @@ nautilus_list_model_get_value (GtkTreeModel *tree_model,
break;
default:
- if (column >= NAUTILUS_LIST_MODEL_NUM_COLUMNS || column < NAUTILUS_LIST_MODEL_NUM_COLUMNS + priv->columns->len)
+ if (column >= NAUTILUS_LIST_MODEL_NUM_COLUMNS && column < NAUTILUS_LIST_MODEL_NUM_COLUMNS + priv->columns->len)
{
NautilusColumn *nautilus_column;
GQuark attribute;