mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-26 16:13:58 -06:00
Remove warning from zero division.
By changing the initial value of pixel size to 1. from 0.
This commit is contained in:
parent
e026ed8718
commit
bf9f908685
2 changed files with 2 additions and 10 deletions
|
@ -80,8 +80,8 @@ public:
|
|||
|
||||
/// Types that represents the dimension of a pixel in millimeters.
|
||||
struct PixelDim {
|
||||
double w_mm = 0.;
|
||||
double h_mm = 0.;
|
||||
double w_mm = 1.;
|
||||
double h_mm = 1.;
|
||||
|
||||
PixelDim(double px_width_mm = 0.0, double px_height_mm = 0.0)
|
||||
: w_mm(px_width_mm), h_mm(px_height_mm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue