~ubuntu-branches/ubuntu/jaunty/goffice/jaunty-updates

« back to all changes in this revision

Viewing changes to goffice/cut-n-paste/foocanvas/foo-canvas.c

  • Committer: Bazaar Package Importer
  • Author(s): Aron Sisak
  • Date: 2007-07-24 19:38:48 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070724193848-1drk5szc3ykeud8f
Tags: 0.4.2-0ubuntu1
* New upstream release:
  - Foocanvas bug that scaled images by 1 extra pixel. [#314864]
  - Fix compilation for Gtk+ trunk.
  - Fix chart guru help button. [#394181]
  - Minor memory leak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3617
3617
        foo_canvas_item_get_bounds (item, &bx1, &by1, &bx2, &by2);
3618
3618
        foo_canvas_w2c_rect_d (item->canvas, &bx1, &by1, &bx2, &by2);
3619
3619
        foo_canvas_get_scroll_offsets (item->canvas, &scroll_x, &scroll_y);
3620
 
        x1 = floor (bx1);
3621
 
        y1 = floor (by1);
3622
 
        x2 = ceil (bx2);
3623
 
        y2 = ceil (by2);
 
3620
        x1 = floor (bx1 + .5);
 
3621
        y1 = floor (by1 + .5);
 
3622
        x2 = floor (bx2 + .5);
 
3623
        y2 = floor (by2 + .5);
3624
3624
        rect->x = x1 - scroll_x;
3625
3625
        rect->y = y1 - scroll_y;
3626
3626
        rect->width = x2 - x1;