Commit 06bf8d6d9169e52a33d161e7512e9f22a6fce471
1 parent
aec0faf0
don't serialize null transforms
Showing
1 changed file
with
2 additions
and
1 deletions
openbr/core/core.cpp
| @@ -132,7 +132,8 @@ struct AlgorithmCore | @@ -132,7 +132,8 @@ struct AlgorithmCore | ||
| 132 | compressedWrite.open(QFile::WriteOnly); | 132 | compressedWrite.open(QFile::WriteOnly); |
| 133 | 133 | ||
| 134 | // Serialize algorithm to stream | 134 | // Serialize algorithm to stream |
| 135 | - transform->serialize(out); | 135 | + if (transform) |
| 136 | + transform->serialize(out); | ||
| 136 | 137 | ||
| 137 | qint32 mode = None; | 138 | qint32 mode = None; |
| 138 | if (!distance.isNull()) | 139 | if (!distance.isNull()) |