Commit 04df7bef68a3fcf5f8df722b17524f194f04dd4c

Authored by Scott Klum
2 parents c7010d94 f794e6e0

Merge branch 'master' of https://github.com/biometrics/openbr

Showing 1 changed file with 4 additions and 0 deletions
openbr/plugins/gui.cpp
... ... @@ -719,6 +719,8 @@ public:
719 719  
720 720 dst = src;
721 721  
  722 + if (!Globals->useGui)
  723 + return;
722 724 if (src.empty())
723 725 return;
724 726  
... ... @@ -771,6 +773,8 @@ public:
771 773 RectMarkingWindow * trueWindow;
772 774 void init()
773 775 {
  776 + if (!Globals->useGui)
  777 + return;
774 778 initActual<RectMarkingWindow>();
775 779 trueWindow = dynamic_cast<RectMarkingWindow *> (this->window);
776 780 trueWindow->setKeys(this->keys);
... ...