Commits

Ian Chen committed bf984b4

Minor code check changes

  • Participants
  • Parent commits fe3b0d3
  • Branches ian-building

Comments (0)

Files changed (2)

gazebo/gui/model_editor/BuildingMaker.cc

     const std::vector<QRectF> &_holes, std::vector<QRectF> &_subdivisions)
 {
   // use multiset for ordered elements
-  std::multiset<QRectF, bool(*)(const QRectF &, const QRectF &)>
+  std::multiset<QRectF, bool (*)(const QRectF &, const QRectF &)>
       filledX(BuildingMaker::RectCompareX);
-  std::multiset<QRectF, bool(*)(const QRectF &, const QRectF &)>
+  std::multiset<QRectF, bool (*)(const QRectF &, const QRectF &)>
       filledY(BuildingMaker::RectCompareY);
   for (unsigned int i = 0; i < _holes.size(); ++i)
   {
     filledY.insert(_holes[i]);
   }
 
-  std::multiset<QPointF, bool(*)(const QPointF &, const QPointF &)> startings(
-      BuildingMaker::PointCompareY);
+  std::multiset<QPointF, bool (*)(const QPointF &, const QPointF &)>
+      startings(BuildingMaker::PointCompareY);
 
   QPointF start(_surface.x(), _surface.y());
   startings.insert(start);

gazebo/gui/model_editor/EditorView.cc

 
   Level *newLevel = new Level;
   newLevel->level = 0;
+  newLevel->height = 0;
   newLevel->name = "Level 1";
   this->levels.push_back(newLevel);