From: spo Date: Wed, 15 Jun 2016 14:03:23 +0000 (+0300) Subject: Fix return ModelHighAPI_Selection from list as a copy X-Git-Tag: V_2.4.0~91^2~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=854df7df0c2c9f5af095dc932b35038e2cd18ac5;p=modules%2Fshaper.git Fix return ModelHighAPI_Selection from list as a copy --- diff --git a/src/ModelHighAPI/ModelHighAPI.i b/src/ModelHighAPI/ModelHighAPI.i index 03df07c00..1a043be26 100644 --- a/src/ModelHighAPI/ModelHighAPI.i +++ b/src/ModelHighAPI/ModelHighAPI.i @@ -108,6 +108,11 @@ } } +%typemap(out) const ModelHighAPI_Selection & { + $1_basetype * ptr = new $1_basetype(*$1); + $result = SWIG_NewPointerObj( (void*) ptr, $1_descriptor, 1 ); +} + // all supported interfaces %include "ModelHighAPI_Double.h" %include "ModelHighAPI_Integer.h"