From 67d0cba3b1bfc7acc970eb10f0a11e32c36325c6 Mon Sep 17 00:00:00 2001 From: XXX Date: Fri, 28 May 2021 12:44:54 -0600 Subject: [PATCH] Fixes #340 --- .../SpacesSubsurfacesGridView.cpp | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/openstudio_lib/SpacesSubsurfacesGridView.cpp b/src/openstudio_lib/SpacesSubsurfacesGridView.cpp index 243c93cc5..dcc3279ff 100644 --- a/src/openstudio_lib/SpacesSubsurfacesGridView.cpp +++ b/src/openstudio_lib/SpacesSubsurfacesGridView.cpp @@ -365,23 +365,6 @@ void SpacesSubsurfacesGridController::addColumns(const QString& category, std::v return allModelObjects; }); - std::function>(const model::Space&)> allOutsideBoundaryConditionObjects( - [allSubSurfaces](const model::Space& t_space) { - std::vector> allModelObjects; - std::vector> allAdjacentSubSurfaces; - for (auto subSurface : allSubSurfaces(t_space)) { - auto adjacentSubSurface = subSurface.cast().adjacentSubSurface(); - if (adjacentSubSurface) { - allAdjacentSubSurfaces.push_back(adjacentSubSurface); - } else { - allAdjacentSubSurfaces.push_back(boost::optional()); - } - } - allModelObjects.insert(allModelObjects.end(), allAdjacentSubSurfaces.begin(), allAdjacentSubSurfaces.end()); - - return allModelObjects; - }); - if (field == SELECTED) { auto checkbox = QSharedPointer(new OSSelectAllCheckBox()); checkbox->setToolTip("Check to select all rows"); @@ -433,8 +416,8 @@ void SpacesSubsurfacesGridController::addColumns(const QString& category, std::v CastNullAdapter(&model::SubSurface::adjacentSubSurface), setter, boost::optional>(NullAdapter(&model::SubSurface::resetAdjacentSubSurface)), boost::optional>(), - boost::optional(model::SubSurface*)>>(), - DataSource(allOutsideBoundaryConditionObjects, true)); + boost::optional(model::SubSurface*)>>(), + DataSource(allSubSurfaces, true)); } else if (field == SHADINGSURFACENAME) { } else if (field == SHADINGCONTROLNAME) {