Skip to content

Commit

Permalink
viz: fix mismatched free/delete inside nanogui layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed May 14, 2024
1 parent c2177df commit bc7d465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions mola_kernel/src/interfaces/RawDataSourceBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ void RawDataSourceBase::sendObservationsToFrontEnds(
auto fut = viz->create_subwindow(sv->sensor_label);
sv->win = fut.get();

sv->win->setLayout(new nanogui::GridLayout(
nanogui::Orientation::Vertical, 1,
nanogui::Alignment::Fill, 2, 2));

// Replace and resize, if user provided "win_pos":
if (sv->win && !sv->win_pos.empty())
{
Expand Down
4 changes: 0 additions & 4 deletions mola_viz/src/MolaViz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,6 @@ std::future<nanogui::Window*> MolaViz::create_subwindow(
ASSERT_(topWin);

auto subw = topWin->createManagedSubWindow(subWindowTitle);
subw->setLayout(new nanogui::GridLayout(
nanogui::Orientation::Vertical, 1, nanogui::Alignment::Fill, 2,
2));

// add to list of subwindows too:
subWindows_[parentWindow][subWindowTitle] = subw;

Expand Down

0 comments on commit bc7d465

Please sign in to comment.