Revision 228 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/gui/MapProperties.java
MapProperties.java | ||
---|---|---|
116 | 116 |
|
117 | 117 |
getTxtHorizontal().setText( |
118 | 118 |
Double.toString(map.getLayoutContext().getAttributes() |
119 |
.getNumUnitsX()));
|
|
119 |
.getHGridGapCm()));
|
|
120 | 120 |
getTxtVertical().setText( |
121 | 121 |
Double.toString(map.getLayoutContext().getAttributes() |
122 |
.getNumUnitsY()));
|
|
122 |
.getVGridGapCm()));
|
|
123 | 123 |
|
124 | 124 |
getChkActiveGrid().setSelected( |
125 | 125 |
map.getLayoutContext().isAdjustingToGrid()); |
... | ... | |
641 | 641 |
if (sh.length() != 0) { |
642 | 642 |
double f = new Double(sh).doubleValue(); |
643 | 643 |
map.getLayoutContext().getAttributes() |
644 |
.setNumUnitsX(f);
|
|
644 |
.setHGridGrapCm(f);
|
|
645 | 645 |
} |
646 | 646 |
|
647 | 647 |
String sv = txtVertical.getText(); |
... | ... | |
649 | 649 |
if (sv.length() != 0) { |
650 | 650 |
double f = new Double(sv).doubleValue(); |
651 | 651 |
map.getLayoutContext().getAttributes() |
652 |
.setNumUnitsY(f);
|
|
652 |
.setVGridGrapCm(f);
|
|
653 | 653 |
} |
654 | 654 |
|
655 | 655 |
PluginServices.getMDIManager().closeWindow( |
Also available in: Unified diff