Skip to content

Commit 4240807

Browse files
committedJun 30, 2013
Fix dimension calculation in heatmap plugin (fix #8193)
1 parent 1ad59b7 commit 4240807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/plugins/heatmap/heatmapgui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void HeatmapGui::on_rowsSpinBox_editingFinished()
285285
mRows = rowsSpinBox->value();
286286
mYcellsize = mBBox.height() / mRows;
287287
mXcellsize = mYcellsize;
288-
mColumns = max( mBBox.width() / mXcellsize, 1 );
288+
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );
289289

290290
updateSize();
291291
}
@@ -295,7 +295,7 @@ void HeatmapGui::on_columnsSpinBox_editingFinished()
295295
mColumns = columnsSpinBox->value();
296296
mXcellsize = mBBox.width() / mColumns;
297297
mYcellsize = mXcellsize;
298-
mRows = max( mBBox.height() / mYcellsize, 1 );
298+
mRows = max( round( mBBox.height() / mYcellsize ), 1 );
299299

300300
updateSize();
301301
}

0 commit comments

Comments
 (0)
Please sign in to comment.