Bug IPAL22921: TC6.5.0: SplitAngle makes no modification

This commit is contained in:
vsr 2012-04-23 11:17:43 +00:00
parent 56fdc40ca9
commit 55d3688bd8
2 changed files with 10 additions and 6 deletions

View File

@ -31,6 +31,7 @@
#include "utilities.h"
#include "OpUtil.hxx"
#include "Utils_ExceptHandlers.hxx"
#include <Basics_Utils.hxx>
#include <TColStd_HSequenceOfTransient.hxx>
@ -109,6 +110,8 @@ GEOM::GEOM_Object_ptr GEOM_IHealingOperations_i::ProcessShape (GEOM::GEOM_Object
const GEOM::string_array& theParams,
const GEOM::string_array& theValues)
{
Kernel_Utils::Localizer loc;
GEOM::GEOM_Object_var aGEOMObject;
// Set a not done flag

View File

@ -41,6 +41,8 @@
#include <SALOME_ListIteratorOfListIO.hxx>
#include <SALOME_ListIO.hxx>
#include <Basics_Utils.hxx>
#include <TCollection_AsciiString.hxx>
#include <TColStd_MapOfInteger.hxx>
@ -460,14 +462,14 @@ const char* get_convert( const char* theParam, const QString& theValue )
// function : set_convert
// purpose : conversion of angle values to degrees (non-angle values are not converted)
//=================================================================================
const char* set_convert( const char* theParam, const char* theValue )
QString set_convert( const char* theParam, const char* theValue )
{
if ( !strcmp( theParam, "SplitAngle.Angle" ) ) {
Kernel_Utils::Localizer loc;
double doubleValue = atof( theValue ) * 180. / M_PI;
TCollection_AsciiString str( doubleValue );
return CORBA::string_dup( str.ToCString() );
return QString::number( doubleValue );
}
return CORBA::string_dup( theValue );
return QString( theValue );
}
//=================================================================================
@ -499,8 +501,7 @@ void RepairGUI_ShapeProcessDlg::loadDefaults()
for ( int j = 0; j < aParams->length(); j++ ) {
QWidget* aCtrl = getControl( (const char*)aParams[j] );
const char* aValue = set_convert( (const char*)aParams[j], aValues[j] );
setValue( aCtrl, aValue );
setValue( aCtrl, set_convert( (const char*)aParams[j], aValues[j] ) );
}
}
}