]> source.dussan.org Git - tigervnc.git/commitdiff
[Enhancement] Sending zero coordinates of the video area selection if that selection...
authorConstantin Kaplinsky <const@tightvnc.com>
Fri, 5 Sep 2008 02:41:15 +0000 (02:41 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Fri, 5 Sep 2008 02:41:15 +0000 (02:41 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2754 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/RfbProto.java

index 39656fc99e54332c4db2268a31545b9928eb8182..5aa2af5e93048cdc0c5df9d7c6f785bf9fb4ee04 100644 (file)
@@ -1373,6 +1373,11 @@ class RfbProto {
       return;
     }
 
+    // Send zero coordinates if the rectangle is empty.
+    if (rect.isEmpty()) {
+      rect = new Rectangle();
+    }
+
     int x = rect.x;
     int y = rect.y;
     int w = rect.width;