Kaydet (Commit) 2c77ef2c authored tarafından Julien Nabet's avatar Julien Nabet

Assignment of function parameter has no effect outside the function

Change-Id: I5d869414a382e9b96ea403c645a9050372e5e39d
üst 19020191
...@@ -103,7 +103,6 @@ void SAL_CALL ...@@ -103,7 +103,6 @@ void SAL_CALL
ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeException) ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeException)
{ {
double nContrast = getContrast(); double nContrast = getContrast();
nContrast += increment;
if( increment < 0 ) if( increment < 0 )
{ {
increment = 0.0; increment = 0.0;
...@@ -112,6 +111,7 @@ ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeExc ...@@ -112,6 +111,7 @@ ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeExc
{ {
increment = 1.0; increment = 1.0;
} }
nContrast += increment;
setContrast( nContrast ); setContrast( nContrast );
} }
......
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