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/fframes/FFrameScaleBar.java

View differences:

FFrameScaleBar.java
94 94
    private int m_numinterval = 3;
95 95
    private int m_numleft = 2;
96 96
    private double m_height = 0;
97
    private double m_typeUnit = 100.0d*MapContext.getDistanceTrans2Meter()[1]; // METROS;
97
    private double m_typeUnit = Attributes.getConversionFactorToCm(1); // METROS;
98 98
    private String m_nameUnit = null;
99 99
    private double m_numUnit = 0;
100 100
    private double m_dif = 1;
......
292 292
     */
293 293
    public void setUnits(int s) {
294 294
        m_units = s;
295
        m_typeUnit = MapContext.getDistanceTrans2Meter()[s] * 100;// Attributes.CHANGE[s];
295
        m_typeUnit = Attributes.getConversionFactorToCm(s);
296 296
        m_nameUnit =
297 297
            PluginServices.getText(this, MapContext.getDistanceNames()[s]);
298 298
    }

Also available in: Unified diff