Skip to content

Commit

Permalink
Copy align map rxn param.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Jun 8, 2016
1 parent 50b0a7d commit 858d5c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ private DepictionGenerator(DepictionGenerator org) {
this.highlight.putAll(org.highlight);
this.gens.addAll(org.gens);
this.params.putAll(org.params);
this.alignMappedReactions = org.alignMappedReactions;
}

private <U, T extends IGeneratorParameter<U>> U getParameterValue(Class<T> key) {
Expand Down Expand Up @@ -867,7 +868,7 @@ public DepictionGenerator withRxnTitle() {
* @return new generator for method chaining
*/
public DepictionGenerator withMappedRxnAlign(boolean val) {
DepictionGenerator copy = new DepictionGenerator();
DepictionGenerator copy = new DepictionGenerator(this);
copy.alignMappedReactions = val;
return copy;
}
Expand Down

0 comments on commit 858d5c0

Please sign in to comment.