X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FBaseObjects%2FParameters.cxx;h=4025461f345cc060d294880281c3c9f9b4d989f3;hb=80ac2c55630c2a345a2102f0be86843147a398cc;hp=cfb5f83b220aaa3b0a8488887932aa2df34c8deb;hpb=e393f405f8f1864f8b019940fe1303be78002f64;p=cpPlugins.git diff --git a/lib/cpPlugins/BaseObjects/Parameters.cxx b/lib/cpPlugins/BaseObjects/Parameters.cxx index cfb5f83..4025461 100644 --- a/lib/cpPlugins/BaseObjects/Parameters.cxx +++ b/lib/cpPlugins/BaseObjects/Parameters.cxx @@ -200,6 +200,7 @@ ConfigureAsRealTypesChoices( const std::string& name ) choices.push_back( "float" ); choices.push_back( "double" ); this->ConfigureAsChoices( name, choices ); + this->SetSelectedChoice( name, "float" ); } // ------------------------------------------------------------------------- @@ -216,6 +217,7 @@ ConfigureAsIntTypesChoices( const std::string& name ) choices.push_back( "long" ); choices.push_back( "ulong" ); this->ConfigureAsChoices( name, choices ); + this->SetSelectedChoice( name, "char" ); } // ------------------------------------------------------------------------- @@ -234,6 +236,7 @@ ConfigureAsScalarTypesChoices( const std::string& name ) choices.push_back( "float" ); choices.push_back( "double" ); this->ConfigureAsChoices( name, choices ); + this->SetSelectedChoice( name, "char" ); } // -------------------------------------------------------------------------