Mercurial > hg > Applications > TreeVNC
changeset 199:a51613eaf27a
fix zoom button.
author | oc |
---|---|
date | Fri, 27 Jun 2014 17:19:58 +0900 |
parents | f5abf6ba9957 |
children | 70af0b1b88d2 |
files | src/viewer_swing/java/com/glavsoft/viewer/swing/Surface.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/Surface.java Fri Jun 27 17:10:33 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/Surface.java Fri Jun 27 17:19:58 2014 +0900 @@ -229,7 +229,8 @@ setLocalCursorShape(uiSettings.getMouseCursorShape()); } } - mouseEventListener.setScaleFactor(scaleFactor); + if (mouseEventListener!=null) + mouseEventListener.setScaleFactor(scaleFactor); updateFrameSize(); }