From 865e234a44d8abe89f8d1506ebc5c597ebdd7397 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 3 Oct 2011 19:15:07 +0200 Subject: [PATCH] Workaround for Wx/GTK bug on Linux --- lib/Slic3r/GUI/OptionsGroup.pm | 1 + lib/Slic3r/GUI/SkeinPanel.pm | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index aeb258182..fbef061d9 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -17,6 +17,7 @@ sub new { foreach my $opt (@{$p{options}}) { my $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", Wx::wxDefaultPosition, [180,-1]); + $label->Wrap(180); # needed to avoid Linux/GTK bug my $field; if ($opt->{type} =~ /^(i|f)$/) { $field = Wx::TextCtrl->new($parent, -1, ${$opt->{value}}); diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 01ca86e16..19bea64c5 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -199,7 +199,6 @@ sub new { ); $panels{slice} = Wx::BoxSizer->new(wxVERTICAL); - $panels{slice}->Add(-1, 20); # empty space before button my $slice_button = Wx::Button->new($self, -1, "Slice..."); $panels{slice}->Add($slice_button, 0, wxALIGN_CENTER); EVT_BUTTON($self, $slice_button, \&do_slice);