summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2013-02-09 02:19:05 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2013-02-09 02:19:05 +0000
commitddde1e22e1a125042bf0a49f7c3ae50b21b173cd (patch)
treee38859c701708b4447f9a99a02a8532894d1541b
parent923c5fe7e055164a4ab14fa2e9cb6a8106137b34 (diff)
downloadtigervnc-ddde1e22e1a125042bf0a49f7c3ae50b21b173cd.tar.gz
tigervnc-ddde1e22e1a125042bf0a49f7c3ae50b21b173cd.zip
Fix a regression introduced in r5034 that causes window to be resized unnecesarily.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5039 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--java/com/tigervnc/vncviewer/CConn.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java
index fd07b27d..cccb7ba4 100644
--- a/java/com/tigervnc/vncviewer/CConn.java
+++ b/java/com/tigervnc/vncviewer/CConn.java
@@ -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))