GUAC-932: Fix dimension checking logic.

This commit is contained in:
Michael Jumper
2014-11-30 04:19:45 -08:00
parent f5e300250d
commit 331644ddd9

View File

@@ -306,7 +306,7 @@ angular.module('client').directive('guacClient', [function guacClient() {
client.disconnect(); client.disconnect();
// Update stored thumbnail of previous connection // 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 // Get screenshot
var canvas = display.flatten(); var canvas = display.flatten();