summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-02-04 19:18:14 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-02-04 19:18:14 +0000
commitcfc4f286930ba77bce51f38db281e5070f392ef1 (patch)
tree3f28c9c3735326cb0bff3b8c461686e8a7f558c5 /src
parentDelete trailing whitespace (diff)
downloadinkscape-cfc4f286930ba77bce51f38db281e5070f392ef1.tar.gz
inkscape-cfc4f286930ba77bce51f38db281e5070f392ef1.zip
fix axonomgrid emphasizing
(bzr r4657)
Diffstat (limited to 'src')
-rw-r--r--src/display/canvas-axonomgrid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp
index 79e301b73..ef3a8eae2 100644
--- a/src/display/canvas-axonomgrid.cpp
+++ b/src/display/canvas-axonomgrid.cpp
@@ -627,7 +627,7 @@ CanvasAxonomGrid::Render (SPCanvasBuf *buf)
// z-axis always goes from bottomleft to topright. (0,1) - (1,0)
gdouble const zintercept_y_bc = (buf_tl_gc[NR::X] * -tan_angle[Z]) - buf_tl_gc[NR::Y] ;
gdouble const zstart_y_sc = ( zintercept_y_bc - floor(zintercept_y_bc/lyw)*lyw ) + buf->rect.y0;
- gint const zlinestart = (gint) Inkscape::round( (zstart_y_sc + buf->rect.x0*tan_angle[X] - ow[NR::Y]) / lyw );
+ gint const zlinestart = (gint) Inkscape::round( (zstart_y_sc + buf->rect.x0*tan_angle[Z] - ow[NR::Y]) / lyw );
gint zlinenum = zlinestart;
// lines starting from left side
for (y = zstart_y_sc; y < buf->rect.y1; y += lyw, zlinenum++) {