From 6128eabdf883ef988e2941fd93c300c5bdafca24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 16 Dec 2021 22:14:22 +0100 Subject: [PATCH] Check screen limit is None before comparing issue11015 review389361002 (grafted from 28d16a85ee0d4bb2c7b160e7ee859f7badea216d) --HG-- branch : 6.0 --- src/tab.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tab.js b/src/tab.js index d1010ca098..d9bbdae2c7 100644 --- a/src/tab.js +++ b/src/tab.js @@ -1482,7 +1482,9 @@ 'disabled', this.screen.readonly); var msg = name + ' / ' + data[1]; - if ((data[1] < data[2]) && (data[2] > this.screen.limit)) { + if ((data[1] < data[2]) && + this.screen.limit !== null && + (data[2] > this.screen.limit)) { msg += Sao.i18n.gettext(' of ') + data[2]; } this.status_label.text(msg).attr('title', msg);