From b3f1b259ab87108d97a58758f825ee485fc04db7 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Thu, 25 May 2017 06:14:38 +0800 Subject: [PATCH] fix compiler error --- source/gui/widgets/skeletons/text_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/widgets/skeletons/text_editor.cpp b/source/gui/widgets/skeletons/text_editor.cpp index e81accb4..6bf1bd52 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -3132,7 +3132,7 @@ namespace nana{ namespace widgets } else if (coord.x + static_cast(caret_size().width) >= origin.x + static_cast(view_area.width)) { - extra.x = (std::min)(textbase().getline(points_.caret.y).size(), points_.caret.x + extra_count_horz); + extra.x = (std::min)(static_cast(textbase().getline(points_.caret.y).size()), points_.caret.x + extra_count_horz); auto new_origin = _m_caret_to_coordinate(extra, false).x + static_cast(caret_size().width) - static_cast(view_area.width); moved_origin.x = new_origin - origin.x; }