mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Follow up: Adding new sla material parameters...
Small fix for redundant operations.
This commit is contained in:
parent
7c94db0634
commit
bafa4d6d19
1 changed files with 10 additions and 9 deletions
|
@ -3699,7 +3699,9 @@ void bound_check(Tab &tb, e_cmp cmp, const char *id, const char *boundid)
|
|||
double ddiff = value - bound;
|
||||
int diff = ddiff < 0 ? SMALLER : (std::abs(ddiff) < EPSILON ? EQUAL : GREATER);
|
||||
|
||||
if ((cmp | diff) != cmp) {
|
||||
wxString fmt;
|
||||
|
||||
switch (cmp) {
|
||||
case EQUAL: fmt = _(L("%s should be equal to %s")); break;
|
||||
case SMALLER: fmt = _(L("%s should be smaller than %s")); break;
|
||||
|
@ -3708,7 +3710,6 @@ void bound_check(Tab &tb, e_cmp cmp, const char *id, const char *boundid)
|
|||
case GREATER_EQ: fmt = _(L("%s should be greater or equal to %s")); break;
|
||||
}
|
||||
|
||||
if ((cmp | diff) != cmp) {
|
||||
wxString msg_text = wxString::Format(fmt, valuelabel, boundlabel);
|
||||
|
||||
wxMessageDialog dialog(tb.parent(), msg_text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue