Revision 30041

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/VectorialUniqueValueLegend.java
514 514
					auxValue = getValue(sk[i], stk[i]);
515 515
					if ( auxValue instanceof NullValue ) {
516 516
						auxValue = new NullUniqueValue();
517
					} else {
518
					keys.add(auxValue);
517 519
					}
518
					keys.add(auxValue);
519 520
				}
520 521

  
521 522
				boolean foundNullValue = false;
......
526 527
						auxValue2 = new NullUniqueValue();
527 528
						sym = getDefaultSymbol();
528 529
					} else {
530
						if(foundNullValue){
529 531
						sym = SymbologyFactory.createSymbolFromXML(xml
530
								.getChild(i+1), null);
532
								.getChild(i), null);
533
						} else {
534
							sym = SymbologyFactory.createSymbolFromXML(xml
535
									.getChild(i+1), null);
536
						}
531 537
					}
532 538

  
533 539
					symbols.put(auxValue2, sym);
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/VectorialUniqueValue.java
217 217
			idField = elRs.getFieldIndexByName(fieldName);
218 218
			auxLegend = LegendFactory.createVectorialUniqueValueLegend(layer.getShapeType());
219 219
			auxLegend.setClassifyingFieldNames(new String[] {fieldName});
220
			auxLegend.setDefaultSymbol(defaultSymbolPrev.getSymbol());
220 221

  
221 222
			//long numReg = elRs.getRowCount();
222 223
			if (idField == -1) {

Also available in: Unified diff