Skip to content

Commit

Permalink
fixed: Parser: the position of parsed grids is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
arnobl committed Jul 20, 2013
1 parent 617857c commit 64b27e9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ trait PSGridAxes extends PSTAbstractParser with PSTParamParser with PSTCoordinat

private def createGrid(origin : PointUnit, min : PointUnit, max : PointUnit, ctx : PSTContext) : IGrid = {
val grid = DrawingTK.getFactory.createGrid(true, DrawingTK.getFactory.createPoint)
val position = DrawingTK.getFactory.createPoint(ctx.pictureSWPt.getX*IShape.PPC, ctx.pictureSWPt.getY*IShape.PPC*(-1.0))

setStdGridParams(origin, min, max, grid, ctx)

grid.setPosition(position)
grid.setPosition(DrawingTK.getFactory.createPoint(ctx.pictureSWPt.getX*IShape.PPC, (ctx.pictureSWPt.getY+ctx.pictureNEPt.getY)/2.0*IShape.PPC*(-1.0)))
grid.setUnit(ctx.unit)
grid.setGridDots(ctx.gridDots.toInt)
grid.setGridLabelsColour(ctx.gridlabelcolor)
Expand Down

0 comments on commit 64b27e9

Please sign in to comment.