[Libreoffice-commits] core.git: vbahelper/source
Julien Nabet
serval2412 at yahoo.fr
Thu Mar 7 22:46:52 PST 2013
vbahelper/source/vbahelper/vbapictureformat.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2c77ef2c73e22cec9d035c60cd8cd012354df702
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Mar 8 07:44:12 2013 +0100
Assignment of function parameter has no effect outside the function
Change-Id: I5d869414a382e9b96ea403c645a9050372e5e39d
diff --git a/vbahelper/source/vbahelper/vbapictureformat.cxx b/vbahelper/source/vbahelper/vbapictureformat.cxx
index d8501a8..96495e1 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 );
}
More information about the Libreoffice-commits
mailing list