git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69100 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -91,8 +91,8 @@ int draw_scale(double east, double north, int length, int seg, int units,
D_setup_unity(0);
D_get_src(&t, &b, &l, &r);
- x_pos = east * (r - l) / 100.;
- y_pos = (100. - north) * (b - t) / 100.;
+ x_pos = l + (int)(east * (r - l) / 100.);
+ y_pos = t + (int)((100. - north) * (b - t) / 100.);
D_setup(0); /* back to regular coordinate settings */