diff --git a/src/webui/btjson.cpp b/src/webui/btjson.cpp index e02423efb..978e01e72 100644 --- a/src/webui/btjson.cpp +++ b/src/webui/btjson.cpp @@ -256,7 +256,7 @@ QByteArray btjson::getTorrents(QString filter, QString label, int size = torrent_list.size(); // normalize offset if (offset < 0) - offset = size - offset; + offset = size + offset; if ((offset >= size) || (offset < 0)) offset = 0; // normalize limit