mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 17:36:08 +08:00
Bugfix: skirt height and other options shouldn't be limited to 100. #597
This commit is contained in:
parent
88cbae0d48
commit
927b7ce937
@ -86,7 +86,7 @@ sub BUILD {
|
|||||||
my $size = Wx::Size->new($opt->{width} || -1, $opt->{height} || -1);
|
my $size = Wx::Size->new($opt->{width} || -1, $opt->{height} || -1);
|
||||||
|
|
||||||
$field = $opt->{type} eq 'i'
|
$field = $opt->{type} eq 'i'
|
||||||
? Wx::SpinCtrl->new($self->parent, -1, $opt->{default}, wxDefaultPosition, $size, $style, $opt->{min} || 0, $opt->{max} || 100, $opt->{default})
|
? Wx::SpinCtrl->new($self->parent, -1, $opt->{default}, wxDefaultPosition, $size, $style, $opt->{min} || 0, $opt->{max} || 2147483647, $opt->{default})
|
||||||
: Wx::TextCtrl->new($self->parent, -1, $opt->{default}, wxDefaultPosition, $size, $style);
|
: Wx::TextCtrl->new($self->parent, -1, $opt->{default}, wxDefaultPosition, $size, $style);
|
||||||
$field->Disable if $opt->{readonly};
|
$field->Disable if $opt->{readonly};
|
||||||
$self->_setters->{$opt_key} = sub { $field->SetValue($_[0]) };
|
$self->_setters->{$opt_key} = sub { $field->SetValue($_[0]) };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user