mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-21 20:25:20 +00:00
FIX: the line wrapping of MessageDialog is incorrect
jira: none Change-Id: I0e821d4acbcb35ab4920a5e5b98180afa54eb7e0 (cherry picked from commit 470657fed16d2288a3ca4c2ae50d61184bb464c8)
This commit is contained in:
@@ -290,10 +290,13 @@ static void add_msg_content(wxWindow *parent,
|
|||||||
page_size = wxSize(68 * em, page_height);
|
page_size = wxSize(68 * em, page_height);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Label* wrapped_text = new Label(html, msg);
|
// Extra line breaks in message dialog
|
||||||
wrapped_text->Wrap(68 * em);
|
//#ifdef __WINDOWS__
|
||||||
msg = wrapped_text->GetLabel();
|
// Label* wrapped_text = new Label(html, msg);
|
||||||
wrapped_text->Destroy();
|
// wrapped_text->Wrap(68 * em);
|
||||||
|
// msg = wrapped_text->GetLabel();
|
||||||
|
// wrapped_text->Destroy();
|
||||||
|
//#endif //__WINDOWS__
|
||||||
wxClientDC dc(parent);
|
wxClientDC dc(parent);
|
||||||
wxSize msg_sz = dc.GetMultiLineTextExtent(msg);
|
wxSize msg_sz = dc.GetMultiLineTextExtent(msg);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user