Revision 42092

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java
1539 1539
        FeatureType featureType) throws DataException {
1540 1540
        checkNotInAppendMode();
1541 1541
        featureType = fixFeatureType((DefaultFeatureType) featureType);
1542
        if (!this.transforms.isEmpty()) {
1543

  
1544
            featureType = this.transforms.getSourceFeatureTypeFrom(featureType);
1545

  
1546
        }
1547
        // TODO comprobar que el id es de este store
1548

  
1549 1542
        if (this.mode == MODE_FULLEDIT) {
1550 1543
            Feature f = featureManager.get(reference, this, featureType);
1551 1544
            if (f != null) {
......
1553 1546
            }
1554 1547
        }
1555 1548

  
1549
        FeatureType sourceFeatureType = featureType;
1550
        if (!this.transforms.isEmpty()) {
1551
            sourceFeatureType = this.transforms.getSourceFeatureTypeFrom(featureType);
1552
        }
1553
        // TODO comprobar que el id es de este store
1556 1554

  
1557 1555
        DefaultFeature feature =
1558 1556
            new DefaultFeature(this,
1559 1557
                this.provider.getFeatureProviderByReference(
1560
                    (FeatureReferenceProviderServices) reference, featureType));
1558
                    (FeatureReferenceProviderServices) reference, sourceFeatureType));
1561 1559

  
1562 1560
        if (!this.transforms.isEmpty()) {
1563 1561
            return this.transforms.applyTransform(feature, featureType);

Also available in: Unified diff