diff --git a/src/fr/inrialpes/exmo/align/impl/edoal/EDOALCell.java b/src/fr/inrialpes/exmo/align/impl/edoal/EDOALCell.java index 330d34a648ae28c72153e1544198fc9b3a3f8037..b60992076a0d2fbd02419580e4f95518c1a08dad 100644 --- a/src/fr/inrialpes/exmo/align/impl/edoal/EDOALCell.java +++ b/src/fr/inrialpes/exmo/align/impl/edoal/EDOALCell.java @@ -114,12 +114,18 @@ public class EDOALCell extends BasicCell { return linkkeys; } - public Cell inverse() throws AlignmentException { + public EDOALCell inverse() throws AlignmentException { EDOALCell invcell = new EDOALCell( (String)null, (Expression)object2, (Expression)object1, relation.inverse(), strength ); - for ( Transformation trsf : transformations ) { - invcell.addTransformation( trsf.inverse() ); + if ( transformations != null ) { + for ( Transformation trsf : transformations ) { + invcell.addTransformation( trsf.inverse() ); + } + } + if ( linkkeys != null ) { + for ( Linkkey lk : linkkeys ) { + invcell.addLinkkey( lk.inverse() ); + } } - // The same should be done for the measure return invcell; }