{\r
jalview.bin.Cache.log.warn("Probable IMPLEMENTATION ERROR: "+from+" doesn't match the local mapping sequence.");\r
}\r
- if (ds!=null && sequenceMapping.getV_parent()!=ds)\r
+ if (ds!=null && sequenceMapping.is__stored_in_document() && sequenceMapping.getV_parent()!=ds)\r
{\r
jalview.bin.Cache.log.warn("Probable IMPLEMENTATION ERROR: "+ds+" doesn't match the parent of the bound sequence mapping object.");\r
}\r
\r
if (dsLoc!=null && dsLoc!=dsMap)\r
{\r
- dsMap.addCodonFrame(afc);\r
+ dsLoc.addCodonFrame(afc);\r
}\r
if (dsMap!=null)\r
{\r