sc/source/ui/vba/vbainterior.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1abdeff9de5d9257464048bcdf50a6d6fd926c0b Author: Tamas Bunth <tamas.bu...@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 <btom...@gmail.com> Tested-by: Tamás Bunth <btom...@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 )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits