1
0
Fork 0

Fix: an implicit old-style integer conversion that sometimes results in a division by zero.

Patch submitted by: David Megginson
This commit is contained in:
scttgs0 2023-10-30 09:53:06 -05:00
parent 3afc4578da
commit ce412c5bf1

View file

@ -125,11 +125,11 @@ public:
}
int GetColStepArcsec() {
return pxSizeX * 3600;
return std::round(pxSizeX * 3600.0);
}
int GetRowStepArcsec() {
return pxSizeY * 3600;
return std::round(pxSizeY * 3600.0);
}
void GetDataChunk(int *buffer,