diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-11-27 01:43:12 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-11-27 01:43:12 +0400 |
commit | 22551b64de05a4f53997b428d574554a8dd2390b (patch) | |
tree | b79cb1e84f41749512121a5c3b7431b42205605c /lib/Slic3r/GUI | |
parent | 7a5af293a8d44c2a38a4530960629bd45fc1f61a (diff) |
Bugfix: a recent change broke all options having a zero value
Diffstat (limited to 'lib/Slic3r/GUI')
-rw-r--r-- | lib/Slic3r/GUI/OptionsGroup.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index f6c4acde0..4b413d7fe 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -32,7 +32,7 @@ sub new { $size = Wx::Size->new($opt->{width} || -1, $opt->{height} || -1); } - $field = Wx::TextCtrl->new($parent, -1, Slic3r::Config->get($opt_key) || '', + $field = Wx::TextCtrl->new($parent, -1, Slic3r::Config->get($opt_key), Wx::wxDefaultPosition, $size, $style); EVT_TEXT($parent, $field, sub { Slic3r::Config->set($opt_key, $field->GetValue) }); push @reload_callbacks, sub { $field->SetValue(Slic3r::Config->get($opt_key)) }; |