We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1ad59b7 commit 4240807Copy full SHA for 4240807
src/plugins/heatmap/heatmapgui.cpp
@@ -285,7 +285,7 @@ void HeatmapGui::on_rowsSpinBox_editingFinished()
285
mRows = rowsSpinBox->value();
286
mYcellsize = mBBox.height() / mRows;
287
mXcellsize = mYcellsize;
288
- mColumns = max( mBBox.width() / mXcellsize, 1 );
+ mColumns = max( round( mBBox.width() / mXcellsize ), 1 );
289
290
updateSize();
291
}
@@ -295,7 +295,7 @@ void HeatmapGui::on_columnsSpinBox_editingFinished()
295
mColumns = columnsSpinBox->value();
296
mXcellsize = mBBox.width() / mColumns;
297
mYcellsize = mXcellsize;
298
- mRows = max( mBBox.height() / mYcellsize, 1 );
+ mRows = max( round( mBBox.height() / mYcellsize ), 1 );
299
300
301
0 commit comments