summaryrefslogtreecommitdiff
path: root/core/fxge
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge')
-rw-r--r--core/fxge/win32/fx_win32_print.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp
index 24cf42aa6b..ecd7be57c7 100644
--- a/core/fxge/win32/fx_win32_print.cpp
+++ b/core/fxge/win32/fx_win32_print.cpp
@@ -233,7 +233,8 @@ bool CGdiPrinterDriver::DrawDeviceText(int nChars,
lf.lfCharSet = DEFAULT_CHARSET;
const CFX_WideString wsName = pFont->GetFaceName().UTF8Decode();
- size_t iNameLen = std::min(wsName.GetLength(), static_cast<size_t>(LF_FACESIZE - 1);
+ size_t iNameLen =
+ std::min(wsName.GetLength(), static_cast<size_t>(LF_FACESIZE - 1));
memcpy(lf.lfFaceName, wsName.c_str(), sizeof(lf.lfFaceName[0]) * iNameLen);
lf.lfFaceName[iNameLen] = 0;