Commit 73fcb96940c9e7ca668b74255cede0f117a23aa1
1 parent
66986dbd
Fixed deep copy
Showing
1 changed file
with
1 additions
and
2 deletions
sdk/plugins/stasm.cpp
| ... | ... | @@ -49,10 +49,9 @@ class StasmTransform : public UntrainableTransform |
| 49 | 49 | |
| 50 | 50 | if (nlandmarks == 0) qFatal("Unable to detect Stasm landmarks"); |
| 51 | 51 | |
| 52 | + dst = src; | |
| 52 | 53 | for (int i = 0; i < nlandmarks; i++) |
| 53 | 54 | dst.file.appendLandmark(QPointF(landmarks[2 * i], landmarks[2 * i + 1])); |
| 54 | - | |
| 55 | - dst.m() = src.m().clone(); | |
| 56 | 55 | } |
| 57 | 56 | }; |
| 58 | 57 | ... | ... |