Commit 479f463040db7ee222d4d82e25493e417e06e464
1 parent
9d5acfe2
Keep all rects in Contract
Showing
1 changed file
with
5 additions
and
0 deletions
openbr/plugins/meta.cpp
| ... | ... | @@ -274,6 +274,11 @@ class ContractTransform : public UntrainableMetaTransform |
| 274 | 274 | foreach (const Template & t, src) { |
| 275 | 275 | out.merge(t); |
| 276 | 276 | } |
| 277 | + out.file.clearRects(); | |
| 278 | + foreach (const Template & t, src) { | |
| 279 | + if (!t.file.rects().empty()) | |
| 280 | + out.file.appendRects(t.file.rects()); | |
| 281 | + } | |
| 277 | 282 | dst.clear(); |
| 278 | 283 | dst.append(out); |
| 279 | 284 | } | ... | ... |