Kaydet (Commit) 1e68aabd authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Don't export builtinId of 54 or above.

Change-Id: I5ab651e0c92ab032d892080f979aa4f53295a8b6
üst 3c99db4c
......@@ -2213,9 +2213,8 @@ void XclExpStyle::SaveXml( XclExpXmlStream& rStrm )
rStrm.GetCurrentStream()->singleElement( XML_cellStyle,
XML_name, sName.getStr(),
XML_xfId, OString::number( nXFId ).getStr(),
/* mso-excel 2007 complains when it finds builtinId >= 55, it is not
* bothered by multiple 54 values. */
#define CELL_STYLE_MAX_BUILTIN_ID 55
// builtinId of 54 or above is invalid according to OpenXML SDK validator.
#define CELL_STYLE_MAX_BUILTIN_ID 54
XML_builtinId, OString::number( std::min( static_cast<sal_Int32>( CELL_STYLE_MAX_BUILTIN_ID - 1 ), static_cast <sal_Int32>( mnStyleId ) ) ).getStr(),
// OOXTODO: XML_iLevel,
// OOXTODO: XML_hidden,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment