Skip to content

Commit 6b03299

Browse files
Fix asking if a partial GeneticBoundaryFeature is an horizon
1 parent b028d84 commit 6b03299

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cmake/swigJavaInclude.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ ${COMMENT_END}
887887
case FRONTIERFEATURE : return new com.f2i_consulting.fesapi.${FESAPI_RESQML2_0_1_NS}.Resqml20_FrontierFeature(cPtr, owner);
888888
case GENETICBOUNDARYFEATURE :
889889
com.f2i_consulting.fesapi.${FESAPI_RESQML2_0_1_NS}.Resqml20_GeneticBoundaryFeature result = new com.f2i_consulting.fesapi.${FESAPI_RESQML2_0_1_NS}.Resqml20_GeneticBoundaryFeature(cPtr, owner);
890-
return result.isAnHorizon() ? new com.f2i_consulting.fesapi.${FESAPI_RESQML2_0_1_NS}.Resqml20_Horizon(cPtr, owner) : result;
890+
return !result.isPartial() && result.isAnHorizon() ? new com.f2i_consulting.fesapi.${FESAPI_RESQML2_0_1_NS}.Resqml20_Horizon(cPtr, owner) : result;
891891
case GEOBODYFEATURE : return new com.f2i_consulting.fesapi.${FESAPI_RESQML2_0_1_NS}.Resqml20_GeobodyFeature(cPtr, owner);
892892
case GEOBODYBOUNDARYINTERPRETATION : return resqml2_instantiateGeobodyBoundaryInterpretation(cPtr, owner);
893893
case GEOBODYINTERPRETATION : return resqml2_instantiateGeobodyInterpretation(cPtr, owner);

src/resqml2_0_1/GeneticBoundaryFeature.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ GeneticBoundaryFeature::GeneticBoundaryFeature(COMMON_NS::DataObjectRepository *
4040

4141
bool GeneticBoundaryFeature::isAnHorizon() const
4242
{
43+
cannotBePartial();
4344
return static_cast<gsoap_resqml2_0_1::_resqml20__GeneticBoundaryFeature*>(gsoapProxy2_0_1)->GeneticBoundaryKind == gsoap_resqml2_0_1::resqml20__GeneticBoundaryKind::horizon;
4445
}
4546

@@ -59,6 +60,7 @@ void GeneticBoundaryFeature::setAge(unsigned int age)
5960

6061
bool GeneticBoundaryFeature::hasAnAge() const
6162
{
63+
cannotBePartial();
6264
return static_cast<gsoap_resqml2_0_1::_resqml20__GeneticBoundaryFeature*>(gsoapProxy2_0_1)->AbsoluteAge != nullptr;
6365
}
6466

0 commit comments

Comments
 (0)