Kaydet (Commit) 1f7a6708 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#703955 Unchecked return value

Change-Id: If10c9643474620855e21caaa1fdcbbc4b7fd07ac
üst 55fb9149
......@@ -755,11 +755,13 @@ IMPL_LINK( SaneDlg, ModifyHdl, Edit*, pEdit )
char pBuf[256];
mnCurrentElement = mpVectorBox->GetValue()-1;
double fValue;
mrSane.GetOptionValue( mnCurrentOption, fValue, mnCurrentElement );
sprintf( pBuf, "%g", fValue );
OUString aValue( pBuf, strlen(pBuf), osl_getThreadTextEncoding() );
mpNumericEdit->SetText( aValue );
mpQuantumRangeBox->SelectEntry( aValue );
if( mrSane.GetOptionValue( mnCurrentOption, fValue, mnCurrentElement ))
{
sprintf( pBuf, "%g", fValue );
OUString aValue( pBuf, strlen(pBuf), osl_getThreadTextEncoding() );
mpNumericEdit->SetText( aValue );
mpQuantumRangeBox->SelectEntry( aValue );
}
}
else if( pEdit == mpTopField )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment