Skip to content
Snippets Groups Projects
Commit c6b340c6 authored by Leonard Kupper's avatar Leonard Kupper
Browse files

Fixing insufficient data representation size bug.

parent b034a9a5
No related branches found
No related tags found
1 merge request!20Fixing insufficient data representation size bug.
......@@ -162,8 +162,10 @@ public class RasterCanvas extends AbstractCanvas {
// To how many dots does this raster size correspond?
mPrintingAreaDots = toDotRectangle(mPrintingAreaCells);
mColumnCount = mPrintingAreaDots.intWrapper().getWidth();
mRowCount = mPrintingAreaDots.intWrapper().getHeight();
// X and Y must be added to the size because the margins are created virtually by leaving these cells empty.
// They have to be contained in the data representation.
mColumnCount = mPrintingAreaDots.intWrapper().getX() + mPrintingAreaDots.intWrapper().getWidth();
mRowCount = mPrintingAreaDots.intWrapper().getY() + mPrintingAreaDots.intWrapper().getHeight();
mLogger.trace("Determined raster dimensions (dots): {} columns x {} rows", mColumnCount, mRowCount);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment