X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FShowThreeDFunction.java;h=c2e285b3fc2839cecbfc38debacb880817631dce;hp=40c4e5af9f2a6e2b0057c81fce60ebb29ec6ce51;hb=a6197ddcaac11c0b943183da7d46169742d024af;hpb=88f2c3647ed9e055090484f01a959d4581f85e7d diff --git a/tim/prune/function/ShowThreeDFunction.java b/tim/prune/function/ShowThreeDFunction.java index 40c4e5a..c2e285b 100644 --- a/tim/prune/function/ShowThreeDFunction.java +++ b/tim/prune/function/ShowThreeDFunction.java @@ -156,8 +156,12 @@ public class ShowThreeDFunction extends GenericFunction */ private void finish() { - // Store exaggeration factor in config + // Store exaggeration factor and grid size in config Config.setConfigInt(Config.KEY_HEIGHT_EXAGGERATION, (int) (_exaggField.getValue() * 100)); + int terrainGridSize = _terrainPanel.getGridSize(); + if (terrainGridSize < 20) {terrainGridSize = 20;} + Config.setConfigInt(Config.KEY_TERRAIN_GRID_SIZE, terrainGridSize); + ThreeDWindow window = WindowFactory.getWindow(_parentFrame); if (window != null) {