From 0607ef5f16327e79915676aceec10f2e3037e719 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 11 Sep 2018 00:00:18 +0800 Subject: ... --- CruUI/ui/controls/text_block.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CruUI/ui/controls/text_block.cpp') diff --git a/CruUI/ui/controls/text_block.cpp b/CruUI/ui/controls/text_block.cpp index 1201fac6..60f8a1c1 100644 --- a/CruUI/ui/controls/text_block.cpp +++ b/CruUI/ui/controls/text_block.cpp @@ -169,7 +169,7 @@ namespace cru const auto&& size = GetSize(); ThrowIfFailed(dwrite_factory->CreateTextLayout( - text_.c_str(), text_.size(), + text_.c_str(), static_cast(text_.size()), text_format_.Get(), size.width, size.height, &text_layout_ -- cgit v1.2.3