From 331644ddd958cfb58332408a4bf711d7e779bb46 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 30 Nov 2014 04:19:45 -0800 Subject: [PATCH] GUAC-932: Fix dimension checking logic. --- guacamole/src/main/webapp/app/client/directives/guacClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/app/client/directives/guacClient.js b/guacamole/src/main/webapp/app/client/directives/guacClient.js index 1a84fe3dd..9ec3b2c39 100644 --- a/guacamole/src/main/webapp/app/client/directives/guacClient.js +++ b/guacamole/src/main/webapp/app/client/directives/guacClient.js @@ -306,7 +306,7 @@ angular.module('client').directive('guacClient', [function guacClient() { client.disconnect(); // Update stored thumbnail of previous connection - if (previousID && display && display.getWidth() >= 0 && display.getHeight() >= 0) { + if (previousID && display && display.getWidth() > 0 && display.getHeight() > 0) { // Get screenshot var canvas = display.flatten();