Commit 06bf8d6d9169e52a33d161e7512e9f22a6fce471

Authored by Josh Klontz
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 132 compressedWrite.open(QFile::WriteOnly);
133 133  
134 134 // Serialize algorithm to stream
135   - transform->serialize(out);
  135 + if (transform)
  136 + transform->serialize(out);
136 137  
137 138 qint32 mode = None;
138 139 if (!distance.isNull())
... ...