Commit f794e6e0eed9e19d75491b4b34c44ecb206d2c3d

Authored by Charles Otto
1 parent 4c595c32

Fix br -objects

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);
... ...