diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2017-06-21 12:23:44 +0200 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2017-06-21 12:30:41 +0200 |
commit | 1abdeff9de5d9257464048bcdf50a6d6fd926c0b (patch) | |
tree | e698bf0b14a75503b4b18c1fd926a3df7cfd593d /sc | |
parent | 9e61a951374a3f7705de67295e406e929c603a42 (diff) |
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@gmail.com>
Tested-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbainterior.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |