sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 045e38a1b50050b5df632723da109234bb7031ab Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Aug 30 08:26:16 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Aug 30 11:01:25 2024 +0200 cid#1618706 Overflowed constant Change-Id: If9d327c3ca9ea300421adc78e603a85206095add Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172629 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx b/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx index 20099de77811..dcd51e0c2186 100644 --- a/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx +++ b/sw/source/writerfilter/ooxml/OOXMLPropertySet.cxx @@ -271,14 +271,14 @@ OOXMLValue OOXMLValue::createHexColor(std::string_view pValue) const sal_Int32 nLen = pValue.size(); if ( !aValue && nLen > 1 && pValue[0] == '#' ) { - sal_Int32 nColor(COL_AUTO); + Color aColor(COL_AUTO); // Word appears to require strict 6 digit length, else it ignores it if ( nLen == 7 ) { const OUString sHashColor(pValue.data(), nLen, RTL_TEXTENCODING_ASCII_US); - sax::Converter::convertColor( nColor, sHashColor ); + sax::Converter::convertColor(aColor, sHashColor); } - aValue = nColor; + aValue = sal_uInt32(aColor); } return OOXMLValue(VariantType(std::in_place_index_t<5>(), aValue)); }