summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorlbenes <lukebenes@hotmail.com>2016-10-30 23:44:11 -0400
committerKhaled Hosny <khaledhosny@eglug.org>2016-10-31 10:50:54 +0000
commit6a737c942b1a4f5c3a99c625793fcd4422b64784 (patch)
tree8788b8f4a6fdb92a102b277a8e8a78673be46322 /vcl/win
parent7441141bcffe43c7cad3795f2979270328028917 (diff)
fix MSVC 2015 build Error C2397
Change-Id: I4810aa8b0b7d28bcd41b4aa19d40f41757d540cd Reviewed-on: https://gerrit.libreoffice.org/30411 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/winlayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 5655785345f7..3aed82d2e6ac 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -3474,7 +3474,7 @@ bool D2DWriteTextOutRenderer::operator ()(SalLayout const &rLayout, HDC hDC,
DWRITE_GLYPH_OFFSET glyphOffsets[MAX_GLYPHS] = { { 0.0f, 0.0f }, };
bool bVertical = false;
- double nYDiff = 0.0f;
+ float nYDiff = 0.0f;
const CommonSalLayout* pCSL = dynamic_cast<const CommonSalLayout*>(&rLayout);
if (pCSL)
bVertical = pCSL->getFontSelData().mbVertical;