Skip to content

Commit

Permalink
#1224 Different indent after loading reaction from file and after lay…
Browse files Browse the repository at this point in the history
…out it (#1227)

Co-authored-by: Aliaksandr Dziarkach <[email protected]>
  • Loading branch information
AliaksandrDziarkach and Aliaksandr Dziarkach authored Aug 17, 2023
1 parent 35f60e3 commit 5fb2726
Show file tree
Hide file tree
Showing 11 changed files with 694 additions and 699 deletions.
4 changes: 3 additions & 1 deletion api/c/indigo/src/indigo_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include "base_cpp/exception.h"
#include "base_cpp/io_base.h"

#include "layout/reaction_layout.h"

#include "molecule/molecule_fingerprint.h"
#include "molecule/molecule_gross_formula.h"
#include "molecule/molecule_ionize.h"
Expand Down Expand Up @@ -329,7 +331,7 @@ class DLLEXPORT Indigo

int layout_max_iterations; // default is zero -- no limit
bool smart_layout = false;
float layout_horintervalfactor = 1.4f;
float layout_horintervalfactor = ReactionLayout::DEFAULT_HOR_INTERVAL_FACTOR;

int layout_orientation = 0;

Expand Down
4 changes: 2 additions & 2 deletions api/c/indigo/src/indigo_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ CEXPORT int indigoLayout(int object)
}

ml.max_iterations = self.layout_max_iterations;
ml.bond_length = 1.6f;
ml.bond_length = MoleculeLayout::DEFAULT_BOND_LENGTH;
ml.layout_orientation = (layout_orientation_value)self.layout_orientation;

TimeoutCancellationHandler cancellation(self.cancellation_timeout);
Expand Down Expand Up @@ -105,7 +105,7 @@ CEXPORT int indigoLayout(int object)
ReactionLayout rl(rxn, self.smart_layout);
rl.max_iterations = self.layout_max_iterations;
rl.layout_orientation = (layout_orientation_value)self.layout_orientation;
rl.bond_length = 1.6f;
rl.bond_length = MoleculeLayout::DEFAULT_BOND_LENGTH;
rl.horizontal_interval_factor = self.layout_horintervalfactor;
rl.make();
try
Expand Down
Loading

0 comments on commit 5fb2726

Please sign in to comment.