[Libreoffice-commits] core.git: sc/source
Tamas Bunth
tamas.bunth at collabora.co.uk
Wed Jun 21 10:31:04 UTC 2017
sc/source/ui/vba/vbainterior.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1abdeff9de5d9257464048bcdf50a6d6fd926c0b
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date: Wed Jun 21 12:23:44 2017 +0200
Fix use of wrong function
Input is a color, expected return value is an index.
Change-Id: I1bb6977cea5aad7a89082ace12f0a85c58a0f2e3
Reviewed-on: https://gerrit.libreoffice.org/39045
Reviewed-by: Tamás Bunth <btomi96 at gmail.com>
Tested-by: Tamás Bunth <btomi96 at gmail.com>
diff --git a/sc/source/ui/vba/vbainterior.cxx b/sc/source/ui/vba/vbainterior.cxx
index bd9b15cb49fe..6e7b626a8702 100644
--- a/sc/source/ui/vba/vbainterior.cxx
+++ b/sc/source/ui/vba/vbainterior.cxx
@@ -366,7 +366,7 @@ ScVbaInterior::getPatternColorIndex()
sal_Int32 nColor = 0;
XLRGBToOORGB( getPatternColor() ) >>= nColor;
- return GetIndexColor( nColor );
+ return uno::makeAny( GetColorIndex( nColor ) );
}
void SAL_CALL
ScVbaInterior::setPatternColorIndex( const uno::Any& _patterncolorindex )
More information about the Libreoffice-commits
mailing list