diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-02 23:21:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-03 10:59:47 +0200 |
commit | 6624124df227e5a8ba14595848008d0b2d901255 (patch) | |
tree | bc815d688c7fa551524b0dda3d56dabb03619af0 /vcl | |
parent | 3e4996f4276ec252a9cc5eab7898aba75103aca7 (diff) |
Why cast from FontWeight to int
Change-Id: I2e283197024c89681dc123e77c05d593ccec4552
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133738
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/print/genpspgraphics.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index 41409d7a07a5..7c4e14b27d52 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -198,9 +198,9 @@ void GenPspGraphics::SetFont(LogicalFontInstance *pFontInstance, int nFallbackLe if( eItalic != ITALIC_NORMAL && eItalic != ITALIC_OBLIQUE ) bArtItalic = true; } - int nWeight = static_cast<int>(rEntry.GetWeight()); - int nRealWeight = static_cast<int>(m_pPrinterGfx->GetFontMgr().getFontWeight( nID )); - if( nRealWeight <= int(WEIGHT_MEDIUM) && nWeight > int(WEIGHT_MEDIUM) ) + FontWeight nWeight = rEntry.GetWeight(); + FontWeight nRealWeight = m_pPrinterGfx->GetFontMgr().getFontWeight( nID ); + if( nRealWeight <= WEIGHT_MEDIUM && nWeight > WEIGHT_MEDIUM ) { bArtBold = true; } |