]> source.dussan.org Git - tigervnc.git/commitdiff
Fix a regression introduced in r5034 that causes window to be resized unnecesarily.
authorBrian Hinz <bphinz@users.sourceforge.net>
Sat, 9 Feb 2013 02:19:05 +0000 (02:19 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Sat, 9 Feb 2013 02:19:05 +0000 (02:19 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5039 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/CConn.java

index fd07b27d24650b0bdcd9ab6545bef69df746197e..cccb7ba4d9af0a1e50c22bdfe6a7430ba2f0391f 100644 (file)
@@ -1002,7 +1002,7 @@ public class CConn extends CConnection
     } else {
       scaleString=scaleString.substring(0, scaleString.length()-1);
     }
-    if (oldScaleFactor != scaleString) {
+    if (!oldScaleFactor.equals(scaleString)) {
       viewer.scalingFactor.setParam(scaleString);
       if ((options.fullScreen.isSelected() == fullScreen) &&
           (desktop != null))