diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 549c9263e..aa0bcbb14 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -3691,7 +3691,12 @@ void SelectMachineDialog::set_default_normal() } char weight[64]; - ::sprintf(weight, " %.2f g", aprint_stats.total_weight); + if (wxGetApp().app_config->get("use_inches") == "1") { + ::sprintf(weight, " %.2f oz", aprint_stats.total_weight * 0.035274); + } + else { + ::sprintf(weight, " %.2f g", aprint_stats.total_weight); + } m_stext_time->SetLabel(time); m_stext_weight->SetLabel(weight); diff --git a/src/slic3r/GUI/SendToPrinter.cpp b/src/slic3r/GUI/SendToPrinter.cpp index f63294145..df3b0ee72 100644 --- a/src/slic3r/GUI/SendToPrinter.cpp +++ b/src/slic3r/GUI/SendToPrinter.cpp @@ -1317,7 +1317,11 @@ void SendToPrinterDialog::set_default() } char weight[64]; - ::sprintf(weight, " %.2f g", aprint_stats.total_weight); + if (wxGetApp().app_config->get("use_inches") == "1") { + ::sprintf(weight, " %.2f oz", aprint_stats.total_weight*0.035274); + }else{ + ::sprintf(weight, " %.2f g", aprint_stats.total_weight); + } m_stext_time->SetLabel(time); m_stext_weight->SetLabel(weight);