From 2c77ef2c73e22cec9d035c60cd8cd012354df702 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 8 Mar 2013 07:44:12 +0100 Subject: Assignment of function parameter has no effect outside the function Change-Id: I5d869414a382e9b96ea403c645a9050372e5e39d --- vbahelper/source/vbahelper/vbapictureformat.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vbahelper/source') diff --git a/vbahelper/source/vbahelper/vbapictureformat.cxx b/vbahelper/source/vbahelper/vbapictureformat.cxx index d8501a85a947..96495e17a774 100644 --- a/vbahelper/source/vbahelper/vbapictureformat.cxx +++ b/vbahelper/source/vbahelper/vbapictureformat.cxx @@ -103,7 +103,6 @@ void SAL_CALL ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeException) { double nContrast = getContrast(); - nContrast += increment; if( increment < 0 ) { increment = 0.0; @@ -112,6 +111,7 @@ ScVbaPictureFormat::IncrementContrast( double increment ) throw (uno::RuntimeExc { increment = 1.0; } + nContrast += increment; setContrast( nContrast ); } -- cgit