Revision 152

View differences:

trunk/org.gvsig.dwg/org.gvsig.dwg.provider.legend/src/main/java/org/gvsig/dwg/fmap/dal/store/dwg/legend/DWGLegendBuilder.java
77 77

  
78 78
		defaultLegend.setDefaultSymbol(myDefaultSymbol);
79 79

  
80

  
81 80
        labelingStragegy =
82 81
            SymbologyLocator.getSymbologyManager()
83 82
                .createAttrInTableLabelingStrategy();
......
94 93
		if (clave == null) {
95 94
			return;
96 95
		}
96

  
97
        defaultLegend.useDefaultSymbol(false);
97 98
		if (defaultLegend.getSymbolByValue(clave) == null) {
98 99
			ISymbol theSymbol;
99 100
			Color color = null;
......
106 107
			theSymbol =
107 108
					MapContextLocator.getSymbolManager().createSymbol(
108 109
					Geometry.TYPES.GEOMETRY, color);
109
			
110

  
110 111
			theSymbol.setDescription(clave.toString());
111 112
			// Asigna los colores de Autocad a los
112 113
			// bordes de los pol?gonos y pone el relleno transparente.
......
123 124
				defaultLegend.addSymbol(clave, theSymbol);
124 125
			}
125 126
		}
127
        defaultLegend.useDefaultSymbol(true);
126 128

  
127 129
	}
128 130

  

Also available in: Unified diff