Commit 0aa5b057ff2c8b0f63f30b9d31551a7ae32a5fab

Authored by Charles Otto
1 parent 033ae34d

Fix conditional in splitFTE

Fix an issue where FTE templates were added to the source list, instead of
discarded entirely, as intended.
openbr/plugins/openbr_internal.h
... ... @@ -484,9 +484,10 @@ inline void splitFTEs(TemplateList &src, TemplateList &ftes)
484 484 src.clear();
485 485  
486 486 foreach (const Template &t, active) {
487   - if (t.file.fte && !Globals->enrollAll)
488   - ftes.append(t);
489   - else
  487 + if (t.file.fte) {
  488 + if (!Globals->enrollAll)
  489 + ftes.append(t);
  490 + } else
490 491 src.append(t);
491 492 }
492 493 }
... ...