desktopSize preference was being applied even if the checkbox was
unselected in the dialog is a value had previously been stored in
the preferences file.
Security.DisableSecType(Security.secTypeX509Ident);
}
}
- if (options.desktopSize.isSelected()) {
- String desktopSize =
- options.desktopWidth.getText() + "x" + options.desktopHeight.getText();
- viewer.desktopSize.setParam(desktopSize);
- }
+ String desktopSize = (options.desktopSize.isSelected()) ?
+ options.desktopWidth.getText() + "x" + options.desktopHeight.getText() : "";
+ viewer.desktopSize.setParam(desktopSize);
if (options.fullScreen.isSelected() ^ fullScreen)
toggleFullScreen();
}