From 470657fed16d2288a3ca4c2ae50d61184bb464c8 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Tue, 18 Feb 2025 15:12:28 +0800 Subject: [PATCH] FIX: the line wrapping of MessageDialog is incorrect jira: none Change-Id: I0e821d4acbcb35ab4920a5e5b98180afa54eb7e0 --- src/slic3r/GUI/MsgDialog.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp index 3615a05a4..cf37722c2 100644 --- a/src/slic3r/GUI/MsgDialog.cpp +++ b/src/slic3r/GUI/MsgDialog.cpp @@ -311,12 +311,13 @@ static void add_msg_content(wxWindow *parent, page_size = wxSize(68 * em, page_height); } else { -#ifdef __WINDOWS__ - Label* wrapped_text = new Label(html, msg); - wrapped_text->Wrap(68 * em); - msg = wrapped_text->GetLabel(); - wrapped_text->Destroy(); -#endif //__WINDOWS__ +// Extra line breaks in message dialog +//#ifdef __WINDOWS__ +// Label* wrapped_text = new Label(html, msg); +// wrapped_text->Wrap(68 * em); +// msg = wrapped_text->GetLabel(); +// wrapped_text->Destroy(); +//#endif //__WINDOWS__ wxClientDC dc(parent); wxSize msg_sz = dc.GetMultiLineTextExtent(msg);