git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed971f2
)
JAL-3551 - wrap pair_fit with undo_disable and undo_enable
author
Jim Procter
<j.procter@dundee.ac.uk>
Wed, 16 Feb 2022 18:43:23 +0000
(18:43 +0000)
committer
Jim Procter
<j.procter@dundee.ac.uk>
Wed, 16 Feb 2022 18:43:23 +0000
(18:43 +0000)
src/jalview/ext/pymol/PymolCommands.java
patch
|
blob
|
history
diff --git
a/src/jalview/ext/pymol/PymolCommands.java
b/src/jalview/ext/pymol/PymolCommands.java
index
ed64c00
..
b69d3e3
100644
(file)
--- a/
src/jalview/ext/pymol/PymolCommands.java
+++ b/
src/jalview/ext/pymol/PymolCommands.java
@@
-114,9
+114,12
@@
public class PymolCommands extends StructureCommandsBase
String refAtomsAlphaOnly = "("+getAtomSpec(refAtoms, specType)+" and (altloc '' or altloc 'a'))";
String atomSpec2AlphaOnly = "("+getAtomSpec(atomSpec, specType)+" and (altloc '' or altloc 'a'))";
// pair_fit mobile -> reference
String refAtomsAlphaOnly = "("+getAtomSpec(refAtoms, specType)+" and (altloc '' or altloc 'a'))";
String atomSpec2AlphaOnly = "("+getAtomSpec(atomSpec, specType)+" and (altloc '' or altloc 'a'))";
// pair_fit mobile -> reference
+ // crashes when undo is enabled on 2.5.2 (incentive)
+ commands.add(new StructureCommand("undo_disable"));
commands.add(new StructureCommand("pair_fit",
atomSpec2AlphaOnly, refAtomsAlphaOnly));
commands.add(new StructureCommand("pair_fit",
atomSpec2AlphaOnly, refAtomsAlphaOnly));
-
+ commands.add(new StructureCommand("undo_enable"));
+
/*
* and show superposed residues as cartoon
*/
/*
* and show superposed residues as cartoon
*/