Skip to content

Commit bbce150

Browse files
committed
Fixed wrong metric/imperial conversion on input values
1 parent 3cbcd98 commit bbce150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void MainWindow::changeMetricInputUnits(bool metric)
237237

238238
const unsigned int doubleSpinBoxesLen = sizeof(doubleSpinBoxes) / sizeof(doubleSpinBoxes[0]);
239239
const unsigned int spinBoxesLen = sizeof(spinBoxes) / sizeof(spinBoxes[0]);
240-
const double cfactor = metric ? 1/2.54 : 2.54;
240+
const double cfactor = metric ? 25.4 : 1/25.4;
241241
const char *distance = metric ? " mm" : " in" ;
242242
const char *speed = metric ? " mm/min" : " in/min" ;
243243

0 commit comments

Comments
 (0)