Skip to content
Permalink
Browse files
Fix dimension calculation in heatmap plugin (fix #8193)
  • Loading branch information
nyalldawson committed Jun 30, 2013
1 parent 1ad59b7 commit 4240807cbede9c173f4ce4bfa1d920e4f0d91606
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/heatmap/heatmapgui.cpp
@@ -285,7 +285,7 @@ void HeatmapGui::on_rowsSpinBox_editingFinished()
mRows = rowsSpinBox->value();
mYcellsize = mBBox.height() / mRows;
mXcellsize = mYcellsize;
mColumns = max( mBBox.width() / mXcellsize, 1 );
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );

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

updateSize();
}

0 comments on commit 4240807

Please sign in to comment.