use more Color in vbahelper
Change-Id: I9d153b184a394ac21d504cb503731f8c5c8ec1de Reviewed-on: https://gerrit.libreoffice.org/50797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -424,7 +424,7 @@ void SAL_CALL ScVbaControl::setTag( const OUString& aTag )
|
|||||||
|
|
||||||
::sal_Int32 SAL_CALL ScVbaControl::getForeColor()
|
::sal_Int32 SAL_CALL ScVbaControl::getForeColor()
|
||||||
{
|
{
|
||||||
sal_Int32 nForeColor = -1;
|
Color nForeColor;
|
||||||
m_xProps->getPropertyValue( "TextColor" ) >>= nForeColor;
|
m_xProps->getPropertyValue( "TextColor" ) >>= nForeColor;
|
||||||
return OORGBToXLRGB( nForeColor );
|
return OORGBToXLRGB( nForeColor );
|
||||||
}
|
}
|
||||||
|
@@ -77,7 +77,7 @@ ScVbaColorFormat::getRGB()
|
|||||||
default:
|
default:
|
||||||
throw uno::RuntimeException( "Second parameter of ColorFormat is wrong." );
|
throw uno::RuntimeException( "Second parameter of ColorFormat is wrong." );
|
||||||
}
|
}
|
||||||
nRGB = OORGBToXLRGB( nRGB );
|
nRGB = OORGBToXLRGB( Color(nRGB) );
|
||||||
return nRGB;
|
return nRGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -304,6 +304,7 @@ OORGBToXLRGB( sal_Int32 nCol )
|
|||||||
sal_Int32 nRGB = ( nAutoBits | (nBlue << 16) | (nGreen << 8) | nRed );
|
sal_Int32 nRGB = ( nAutoBits | (nBlue << 16) | (nGreen << 8) | nRed );
|
||||||
return nRGB;
|
return nRGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Int32
|
sal_Int32
|
||||||
XLRGBToOORGB( sal_Int32 nCol )
|
XLRGBToOORGB( sal_Int32 nCol )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user