Skip to content
Snippets Groups Projects
Commit 8c05017b authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: mantis-1020: revert patches

parent 38d889dc
No related branches found
No related tags found
No related merge requests found
...@@ -143,11 +143,9 @@ inline ...@@ -143,11 +143,9 @@ inline
void otb::ogr::Feature::SetGeometryDirectly(UniqueGeometryPtr geometry) void otb::ogr::Feature::SetGeometryDirectly(UniqueGeometryPtr geometry)
{ {
CheckInvariants(); CheckInvariants();
#if !defined(NDEBUG)
OGRGeometry * g = geometry.get(); OGRGeometry * g = geometry.get();
itkAssertOrThrowMacro((m_Feature->GetGeometryRef() == g), "The new geometry hasn't been set as expected");
#endif
UncheckedSetGeometryDirectly(otb::move(geometry)); UncheckedSetGeometryDirectly(otb::move(geometry));
itkAssertOrThrowMacro((m_Feature->GetGeometryRef() == g), "The new geometry hasn't been set as expected");
itkAssertOrThrowMacro(!geometry, "UniqueGeometryPtr hasn't released its pointer"); itkAssertOrThrowMacro(!geometry, "UniqueGeometryPtr hasn't released its pointer");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment