Skip to content

Commit

Permalink
fix: Json Surface Writing (#897)
Browse files Browse the repository at this point in the history
Fix an issue in the json surface writing where we used a pointer on a surface instead of a shared pointer. This resolves issue #883 .
  • Loading branch information
Corentin-Allaire committed Jul 27, 2021
1 parent 0e83c06 commit 757161d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/Io/Json/src/JsonSurfacesWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void collectSurfaces(std::vector<SurfaceContainer::InputElement>& cSurfaces,
if (layer->surfaceArray() and writeSensitive) {
for (auto surface : layer->surfaceArray()->surfaces()) {
if (surface) {
cSurfaces.push_back(
SurfaceContainer::InputElement{surface->geometryId(), surface});
cSurfaces.push_back(SurfaceContainer::InputElement{
surface->geometryId(), surface->getSharedPtr()});
}
}
}
Expand Down

0 comments on commit 757161d

Please sign in to comment.