[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri May 3 14:38:39 UTC 2019


 loleaflet/src/control/Control.LokDialog.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4297c597b5556238f4ee03c260418a0a2dd6b4f6
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Fri May 3 10:32:05 2019 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Fri May 3 10:37:46 2019 -0400

    loleaflet: validate that the rectangle coordinates ... follow-up
    
    I submitted the wrong patch in gerrit.
    
    Change-Id: I2d5bae2bcc615e5059a81a12cd7b4a1ce75260dd

diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index f55438827..b3e4bcd08 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -195,7 +195,7 @@ L.Control.LokDialog = L.Control.extend({
 
 	_isRectangleValid: function(rect) {
 		rect = rect.split(',');
-		return (!isNaN(rect[0]) && !isNaN(rect[1]) &&
+		return (!isNaN(parseInt(rect[0])) && !isNaN(parseInt(rect[1])) &&
 				parseInt(rect[2]) >= 0 && parseInt(rect[3]) >= 0);
 	},
 


More information about the Libreoffice-commits mailing list