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:
parent
3afc4578da
commit
ce412c5bf1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue