GUAC-932: Fix dimension checking logic.

This commit is contained in:
Michael Jumper committed 2014-12-08 13:55:09 -08:00
1 parent f5e300250d
commit 331644ddd9
1 file changed
+1 -1
@@ -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();