mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-14 20:49:28 -07:00
ENH: add check for FloatsOrPercents illegal values
jira: 10871 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I1c8514da88ff0d0d6c7e02097d60f2e3c53d9d71 (cherry picked from commit 21f91c3b1d91ff02130d5a4d94965d0bc4d5bcbe)
This commit is contained in:
parent
3a46d9dac7
commit
b2ddd87c79
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ void Field::get_value_by_opt_type(wxString& str, const bool check_value/* = true
|
|||
case coStrings:
|
||||
case coFloatOrPercent:
|
||||
case coFloatsOrPercents: {
|
||||
if (m_opt.type == coFloatOrPercent && !str.IsEmpty() && str.Last() != '%')
|
||||
if ((m_opt.type == coFloatOrPercent || m_opt.type == coFloatsOrPercents) && !str.IsEmpty() && str.Last() != '%')
|
||||
{
|
||||
double val = 0.;
|
||||
const char dec_sep = is_decimal_separator_point() ? '.' : ',';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue