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

coverity#703955 Unchecked return value

Change-Id: If10c9643474620855e21caaa1fdcbbc4b7fd07ac
üst 55fb9149
...@@ -755,12 +755,14 @@ IMPL_LINK( SaneDlg, ModifyHdl, Edit*, pEdit ) ...@@ -755,12 +755,14 @@ IMPL_LINK( SaneDlg, ModifyHdl, Edit*, pEdit )
char pBuf[256]; char pBuf[256];
mnCurrentElement = mpVectorBox->GetValue()-1; mnCurrentElement = mpVectorBox->GetValue()-1;
double fValue; double fValue;
mrSane.GetOptionValue( mnCurrentOption, fValue, mnCurrentElement ); if( mrSane.GetOptionValue( mnCurrentOption, fValue, mnCurrentElement ))
{
sprintf( pBuf, "%g", fValue ); sprintf( pBuf, "%g", fValue );
OUString aValue( pBuf, strlen(pBuf), osl_getThreadTextEncoding() ); OUString aValue( pBuf, strlen(pBuf), osl_getThreadTextEncoding() );
mpNumericEdit->SetText( aValue ); mpNumericEdit->SetText( aValue );
mpQuantumRangeBox->SelectEntry( aValue ); mpQuantumRangeBox->SelectEntry( aValue );
} }
}
else if( pEdit == mpTopField ) else if( pEdit == mpTopField )
{ {
mpPreview->ChangePreviewLogicTopLeftY(mpTopField->GetValue()); mpPreview->ChangePreviewLogicTopLeftY(mpTopField->GetValue());
......
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