From 52e44dcc6e7e62551d284626066f31cfaba06e73 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Thu, 1 Sep 2016 13:13:57 +0300 Subject: [PATCH] fix --- Sources/TableSection.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TableSection.swift b/Sources/TableSection.swift index fd74b0b..02ff134 100644 --- a/Sources/TableSection.swift +++ b/Sources/TableSection.swift @@ -86,7 +86,7 @@ public class TableSection { public func replace(rowAt index: Int, with row: Row) -> Bool { - if index > 0 && index < rows.count { + if index >= 0 && index < rows.count { rows[index] = row return true }