Skip to content

Commit

Permalink
Fix command line get_pixel.
Browse files Browse the repository at this point in the history
  • Loading branch information
schani committed Jul 25, 2009
1 parent 48800c4 commit 34fe388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mathmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,9 @@ get_pixel (mathmap_invocation_t *invocation, input_drawable_t *drawable, int fra

++num_pixels_requested;

if (cmd_line_mode)
return cmdline_mathmap_get_pixel(invocation, drawable, frame, x, y);

g_assert(drawable->kind == INPUT_DRAWABLE_GIMP);

if (x < 0 || x >= drawable->image.pixel_width)
Expand All @@ -1191,9 +1194,6 @@ get_pixel (mathmap_invocation_t *invocation, input_drawable_t *drawable, int fra
x += drawable->v.gimp.x0;
y += drawable->v.gimp.y0;

if (cmd_line_mode)
return cmdline_mathmap_get_pixel(invocation, drawable, frame, x, y);

newcol = x / tile_width;
newcoloff = x % tile_width;
newrow = y / tile_height;
Expand Down

0 comments on commit 34fe388

Please sign in to comment.