Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix dimension calculation in heatmap plugin (fix #8193)
  • Loading branch information
nyalldawson committed Jun 30, 2013
1 parent 1ad59b7 commit 4240807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/heatmap/heatmapgui.cpp
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 4240807

Please sign in to comment.