Skip to content

Commit 0c0ed23

Browse files
committed
Support decimals for zoom factor (workaround until we actually get a
"fit" option and a drag+zoom optin.
1 parent 5f05343 commit 0c0ed23

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/tagtraum/perf/gcviewer/action

1 file changed

+1
-1
lines changed

src/main/java/com/tagtraum/perf/gcviewer/action/Zoom.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void actionPerformed(final ActionEvent e) {
3333
try {
3434
String item = (String)o[0];
3535
if (item.endsWith("%")) item = item.substring(0, item.length()-1);
36-
final int zoomFactor = NumberParser.parseInt(item.trim());
36+
final double zoomFactor = Double.parseDouble(item.trim());
3737
if (zoomFactor > 0) gcViewer.getSelectedGCDocument().getModelChart().setScaleFactor(zoomFactor/1000.0);
3838
}
3939
catch (NumberFormatException nfe) {

0 commit comments

Comments
 (0)