Commit 2eceab5f93e2ba661e2ab8990ad79b483359f205
1 parent
4c86b4d0
Reverted ForkTransform to include file information
Showing
1 changed file
with
2 additions
and
2 deletions
openbr/plugins/meta.cpp
| @@ -334,7 +334,7 @@ class ForkTransform : public CompositeTransform | @@ -334,7 +334,7 @@ class ForkTransform : public CompositeTransform | ||
| 334 | void projectUpdate(const TemplateList &src, TemplateList &dst) | 334 | void projectUpdate(const TemplateList &src, TemplateList &dst) |
| 335 | { | 335 | { |
| 336 | dst.reserve(src.size()); | 336 | dst.reserve(src.size()); |
| 337 | - for (int i=0; i<src.size(); i++) dst.append(Template()); | 337 | + for (int i=0; i<src.size(); i++) dst.append(Template(src[i].file)); |
| 338 | foreach (Transform *f, transforms) { | 338 | foreach (Transform *f, transforms) { |
| 339 | TemplateList m; | 339 | TemplateList m; |
| 340 | f->projectUpdate(src, m); | 340 | f->projectUpdate(src, m); |
| @@ -390,7 +390,7 @@ protected: | @@ -390,7 +390,7 @@ protected: | ||
| 390 | void _project(const TemplateList &src, TemplateList &dst) const | 390 | void _project(const TemplateList &src, TemplateList &dst) const |
| 391 | { | 391 | { |
| 392 | dst.reserve(src.size()); | 392 | dst.reserve(src.size()); |
| 393 | - for (int i=0; i<src.size(); i++) dst.append(Template()); | 393 | + for (int i=0; i<src.size(); i++) dst.append(Template(src[i].file)); |
| 394 | foreach (const Transform *f, transforms) { | 394 | foreach (const Transform *f, transforms) { |
| 395 | TemplateList m; | 395 | TemplateList m; |
| 396 | f->project(src, m); | 396 | f->project(src, m); |