From 69a71db25be4fb1f38d228a5b73a08ed82c14894 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 4 Nov 2015 19:13:11 +0100 Subject: [PATCH] Bugfix: wrong default in extruder_offset tooltip. #3051 --- lib/Slic3r/GUI/OptionsGroup.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index 8649166658..671fe786e8 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -334,7 +334,8 @@ sub get_option { gui_flags => $optdef->{gui_flags}, label => ($self->full_labels && defined $optdef->{full_label}) ? $optdef->{full_label} : $optdef->{label}, sidetext => $optdef->{sidetext}, - tooltip => $optdef->{tooltip} . " (default: " . $default_value . ")", + # calling serialize() ensures we get a stringified value + tooltip => $optdef->{tooltip} . " (default: " . $self->config->serialize($opt_key) . ")", multiline => $optdef->{multiline}, width => $optdef->{width}, min => $optdef->{min},