From 34e0e367a261f13c382cf2c0955539452ec4ed2f Mon Sep 17 00:00:00 2001 From: awakening Date: Thu, 10 Mar 2022 21:16:13 +0700 Subject: [PATCH] =?UTF-8?q?Change=20`TextWrapping::overflow=5Fcharacter`?= =?UTF-8?q?=20default=20value=20to=20`=E2=80=A6`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epaint/src/text/text_layout_types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epaint/src/text/text_layout_types.rs b/epaint/src/text/text_layout_types.rs index c8ab26c62fad..2827cae45729 100644 --- a/epaint/src/text/text_layout_types.rs +++ b/epaint/src/text/text_layout_types.rs @@ -272,7 +272,7 @@ pub struct TextWrapping { /// Don't try to break text at an appropriate place. pub break_anywhere: bool, - /// Character to use to represent clipped text, `…` for example. + /// Character to use to represent clipped text, `…` for example, which is the default. pub overflow_character: Option, } @@ -298,7 +298,7 @@ impl Default for TextWrapping { max_width: f32::INFINITY, max_rows: 0, break_anywhere: false, - overflow_character: None, + overflow_character: Some('…'), } } }