Skip to content

Commit

Permalink
Version 9.0.138
Browse files Browse the repository at this point in the history
Fixes #854 no top containers
  • Loading branch information
msevestre authored Dec 3, 2020
2 parents 0ea026f + 9b40336 commit 4fa1cf9
Show file tree
Hide file tree
Showing 4 changed files with 1,883 additions and 1,883 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public class QuantityPathToQuantityDisplayPathMapper : IQuantityPathToQuantityDi
private readonly IPathToPathElementsMapper _pathToPathElementsMapper;
private readonly IDataColumnToPathElementsMapper _dataColumnToPathElementsMapper;

public QuantityPathToQuantityDisplayPathMapper(IObjectPathFactory objectPathFactory, IPathToPathElementsMapper pathToPathElementsMapper,
public QuantityPathToQuantityDisplayPathMapper(
IObjectPathFactory objectPathFactory,
IPathToPathElementsMapper pathToPathElementsMapper,
IDataColumnToPathElementsMapper dataColumnToPathElementsMapper)
{
_objectPathFactory = objectPathFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ namespace OSPSuite.R.MinimalImplementations
{
public class RQuantityPathToQuantityDisplayPathMapper : QuantityPathToQuantityDisplayPathMapper
{
public RQuantityPathToQuantityDisplayPathMapper(IObjectPathFactory objectPathFactory, IPathToPathElementsMapper pathToPathElementsMapper, IDataColumnToPathElementsMapper dataColumnToPathElementsMapper) : base(objectPathFactory, pathToPathElementsMapper, dataColumnToPathElementsMapper)
public RQuantityPathToQuantityDisplayPathMapper(IObjectPathFactory objectPathFactory, IPathToPathElementsMapper pathToPathElementsMapper,
IDataColumnToPathElementsMapper dataColumnToPathElementsMapper) : base(objectPathFactory, pathToPathElementsMapper,
dataColumnToPathElementsMapper)
{
}

Expand All @@ -17,10 +19,6 @@ protected override IEnumerable<PathElementId> DefaultPathElementsToUse(bool addS

yield return PathElementId.Molecule;

//Container is defined? no need to use TopContainer
if (!pathElements.Contains(PathElementId.Container))
yield return PathElementId.TopContainer;

yield return PathElementId.Container;
yield return PathElementId.BottomCompartment;
yield return PathElementId.Name;
Expand Down
Loading

0 comments on commit 4fa1cf9

Please sign in to comment.