Skip to content
Snippets Groups Projects
Commit a1e0e63b authored by Andrey Ruzhanskiy's avatar Andrey Ruzhanskiy
Browse files

Added comment explaining -1

parent a2c210a6
No related branches found
No related tags found
1 merge request!40feat/line rasterizer 31
......@@ -127,6 +127,7 @@ public class LinearMappingAxisRasterizer implements Rasterizer<Axis> {
labelCellX = mCanvas.getCellXFromDotX(dotX + (mTickSize + labelOffset)) + labelOffset;
labelCellY = mCanvas.getCellYFromDotY(dotY);
if (mTickSize < 0) {
// Calculate x position of first character in right aligned text
labelCellArea = new Rectangle(labelCellX - (stringLength - 1), labelCellY, stringLength, 1);
} else {
labelCellArea = new Rectangle(labelCellX, labelCellY, stringLength, 1);
......
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