Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-08-26 17:27:51 +0300
committerVojtech Kral <vojtech@kral.hk>2019-08-27 11:37:34 +0300
commit4edae08a11c00344178c1235086348fd59c044d2 (patch)
treec544e0120d0ac46a741b4625a3d349832a51a824 /src/slic3r/GUI/UpdateDialogs.cpp
parenta1f34adcf6b4e48f00056b00fea534b5af5649a5 (diff)
UpdateDialogs: Fix: Wrap update description
Diffstat (limited to 'src/slic3r/GUI/UpdateDialogs.cpp')
-rw-r--r--src/slic3r/GUI/UpdateDialogs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/UpdateDialogs.cpp b/src/slic3r/GUI/UpdateDialogs.cpp
index 2ea904007..a1a113066 100644
--- a/src/slic3r/GUI/UpdateDialogs.cpp
+++ b/src/slic3r/GUI/UpdateDialogs.cpp
@@ -113,7 +113,9 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates) :
if (! update.comment.empty()) {
flex->Add(new wxStaticText(this, wxID_ANY, _(L("Comment:"))), 0, wxALIGN_RIGHT);
- flex->Add(new wxStaticText(this, wxID_ANY, from_u8(update.comment)));
+ auto *update_comment = new wxStaticText(this, wxID_ANY, from_u8(update.comment));
+ update_comment->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
+ flex->Add(update_comment);
}
versions->Add(flex);