Revision 38639 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/legend/gui/VectorialUniqueValue.java

View differences:

VectorialUniqueValue.java
448 448
					auxLegend.addSymbol(clave, theSymbol);
449 449
				}
450 450
			} else {
451
				/* FIXME: Se optimizar?a descomentarizando el if, pero el metodo equals del AbstractSymbol
452
				 * no tiene en cuenta determinadas propiedades del simbolo, como, por ejemplo, el tama?o.
453
				 * Descomentarizar al arreglar el metodo equals del AbstractSymbol.
454
				 */
455
//				if(!legendSymbol.equals(theSymbol)){
456
					auxLegend.replace(legendSymbol, theSymbol);
457
//				}
451
			    
452
			    // avoid same instance
453
			    if (legendSymbol != theSymbol) {
454

  
455
			        /*
456
			         * Perhaps use this "if" when implementations of ISymbol
457
			         * properly implement the equals method. 
458
			         */
459
			        // if (!legendSymbol.equals(theSymbol)) {
460
			            auxLegend.replace(legendSymbol, theSymbol);
461
			        // }
462
			    }
458 463
			}
459 464
			visitedKeys.add(clave);
460 465
		}

Also available in: Unified diff