Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Fix missing cutBlocks of components with sanitize (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryNesterenok authored and dkormalev committed Mar 19, 2019
1 parent d348cb8 commit 1649fd4
Show file tree
Hide file tree
Showing 5 changed files with 386 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ProofNetworkJdf Changelog
* --

#### Bug Fixing
* --
* Fix missing cutBlocks of components with sanitize

## 0.18.12.24
#### Features
Expand Down
5 changes: 3 additions & 2 deletions src/proofnetwork/jdf/data/component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,10 @@ ComponentSP Component::fromJdf(QXmlStreamReader &xmlReader, const QString &jobId

if (!component->id().isEmpty()) {
auto componentFromCache = componentsCache().add({jobId, component->id()}, component);
if (component != componentFromCache && !sanitize && !isRef)
if (component != componentFromCache && !sanitize && !isRef) {
componentFromCache->updateFrom(component);
component = componentFromCache;
component = componentFromCache;
}
}

return component;
Expand Down
Loading

0 comments on commit 1649fd4

Please sign in to comment.