Commits

Ian Chen  committed 284e845

Layout changes, fix discard

  • Participants
  • Parent commits 011d333
  • Branches ian-building

Comments (0)

Files changed (2)

File gazebo/gui/model_editor/BuildingEditorPalette.cc

       << "<p>Note: Currently, windows & doors are simple holes in the wall.</p>"
       << "<p>Note: Because Gazebo only supports simple primitive shapes, "
       << "all floors will be rectangular.</p>";
-  tipsLabel->setMinimumSize(200, 400);
-  tipsLabel->setMaximumSize(300, 400);
+  tipsLabel->setMinimumSize(300, 500);
+  tipsLabel->setMaximumSize(400, 800);
 
   tipsLabel->setText(tr(tipsText.str().c_str()));
   mainLayout->addItem(new QSpacerItem(10, 20, QSizePolicy::Expanding,

File gazebo/gui/model_editor/EditorView.cc

   for (unsigned int i = 0; i < this->levels.size(); ++i)
     delete this->levels[i];
   this->levels.clear();
+  this->currentLevel = 0;
 
   Level *newLevel = new Level;
   newLevel->level = 0;
+  newLevel->height = 0;
   newLevel->name = "Level 1";
   this->levels.push_back(newLevel);
   this->levelCounter = 0;