diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-21 09:20:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-21 10:39:17 +0200 |
commit | a879b15d59618e73797ad779666f72cd040ff99a (patch) | |
tree | 5048bbc40159c0a4e61016213073e180eca23f2e /drawinglayer | |
parent | 10c65afcdad46ed02e377824bc43dbc384d52340 (diff) |
-Werror,-Wunused-variable (clang-cl)
Change-Id: Ic783ab10a3bc2139eef65351d515814374431e59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101131
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/textlayoutdevice.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index de2f76cb74f6..fe541c04a9b3 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -369,8 +369,6 @@ namespace drawinglayer::primitive2d { // detect FontScaling const sal_uInt32 nHeight(basegfx::fround(fabs(fFontScaleY))); - const sal_uInt32 nWidth(basegfx::fround(fabs(fFontScaleX))); - const bool bFontIsScaled(nHeight != nWidth); #ifdef _WIN32 // for WIN32 systems, start with creating an unscaled font. If FontScaling @@ -380,12 +378,15 @@ namespace drawinglayer::primitive2d rFontAttribute.getFamilyName(), rFontAttribute.getStyleName(), Size(0, nHeight)); + (void)fFontScaleX; #else // for non-WIN32 systems things are easier since these accept a Font creation // with initially nWidth != nHeight for FontScaling. Despite that, use zero for // FontWidth when no scaling is used to explicitly have that zero when e.g. the // Font would be recorded in a MetaFile (The MetaFile FontAction WILL record a // set FontWidth; import that in a WIN32 system, and trouble is there) + const sal_uInt32 nWidth(basegfx::fround(fabs(fFontScaleX))); + const bool bFontIsScaled(nHeight != nWidth); vcl::Font aRetval( rFontAttribute.getFamilyName(), rFontAttribute.getStyleName(), |