sc/source/filter/qpro/qprostyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 725527a54ebb85378673b461ec5f5dca2328a3dc Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Sat Nov 23 13:26:24 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Jun 3 22:46:37 2025 +0200 tdf#163486: PVS V1028 Possible overflow. Consider casting operands, not the result. Change-Id: Ib7eaca6b715abe3f356d33bc88cb4a2383f57e43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177119 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/filter/qpro/qprostyle.cxx b/sc/source/filter/qpro/qprostyle.cxx index 5889e5f1c8d1..5cd64c817447 100644 --- a/sc/source/filter/qpro/qprostyle.cxx +++ b/sc/source/filter/qpro/qprostyle.cxx @@ -128,7 +128,7 @@ void ScQProStyle::SetFormat( ScDocument *pDoc, sal_uInt8 nCol, sal_uInt16 nRow, rItemSet.Put( SvxUnderlineItem( LINESTYLE_SINGLE, ATTR_FONT_UNDERLINE ) ); if (maFontHeight[ maFont [ nStyle ] ]) - rItemSet.Put( SvxFontHeightItem( static_cast<sal_uLong>(20 * maFontHeight[ maFont[ nStyle ] ] ), 100, ATTR_FONT_HEIGHT ) ); + rItemSet.Put( SvxFontHeightItem( static_cast<sal_uLong>(maFontHeight[ maFont[ nStyle ] ] ) * 20, 100, ATTR_FONT_HEIGHT ) ); OUString fntName = maFontType[ maFont[ nStyle ] ]; rItemSet.Put( SvxFontItem( FAMILY_SYSTEM, fntName, OUString(), PITCH_DONTKNOW, RTL_TEXTENCODING_DONTKNOW, ATTR_FONT ) );