From: secher Date: Mon, 15 Feb 2010 09:24:24 +0000 (+0000) Subject: add exception on SetInterpolationOptions X-Git-Tag: V5_1_main_FINAL~215 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e881e8d5cbde3fa4c77db8b06b564f1b4699c11b;p=tools%2Fmedcoupling.git add exception on SetInterpolationOptions --- diff --git a/src/INTERP_KERNEL/InterpolationOptions.cxx b/src/INTERP_KERNEL/InterpolationOptions.cxx index 5b65d6342..a0374a9f3 100644 --- a/src/INTERP_KERNEL/InterpolationOptions.cxx +++ b/src/INTERP_KERNEL/InterpolationOptions.cxx @@ -193,10 +193,7 @@ bool INTERP_KERNEL::InterpolationOptions::setInterpolationOptions(long print_lev std::string splitting_policy, bool P1P0_bary_method ) { - bool ret=true; - _print_level=print_level; - ret = setOptionString(INTERSEC_TYPE_STR,intersection_type); _precision=precision; _median_plane=median_plane; _do_rotate=do_rotate; @@ -205,9 +202,7 @@ bool INTERP_KERNEL::InterpolationOptions::setInterpolationOptions(long print_lev _max_distance_for_3Dsurf_intersect=max_distance_for_3Dsurf_intersect; _orientation=orientation; _measure_abs=measure_abs; - ret = setOptionString(SPLITTING_POLICY_STR,splitting_policy); _P1P0_bary_method=P1P0_bary_method; - - return ret; + return(setOptionString(INTERSEC_TYPE_STR,intersection_type) && setOptionString(SPLITTING_POLICY_STR,splitting_policy)); }