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,6 +719,8 @@ public:
719 719
720 dst = src; 720 dst = src;
721 721
  722 + if (!Globals->useGui)
  723 + return;
722 if (src.empty()) 724 if (src.empty())
723 return; 725 return;
724 726
@@ -771,6 +773,8 @@ public: @@ -771,6 +773,8 @@ public:
771 RectMarkingWindow * trueWindow; 773 RectMarkingWindow * trueWindow;
772 void init() 774 void init()
773 { 775 {
  776 + if (!Globals->useGui)
  777 + return;
774 initActual<RectMarkingWindow>(); 778 initActual<RectMarkingWindow>();
775 trueWindow = dynamic_cast<RectMarkingWindow *> (this->window); 779 trueWindow = dynamic_cast<RectMarkingWindow *> (this->window);
776 trueWindow->setKeys(this->keys); 780 trueWindow->setKeys(this->keys);