Commit d02832f1 authored by Jody Goldberg's avatar Jody Goldberg

Minor fix to object resizing while zoomed.

parent 9336e78d
1999-09-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-widget.c (sheet_object_widget_update_bounds) :
Don't zoom coords sheet_object_get_bounds takes care of that
for us.
* src/sheet-object-container.c (sheet_object_container_update_bounds) :
Ditto.
* src/sheet-object-graphic.c (sheet_object_filled_update_bounds) :
Ditto, renamed from sheet_object_filled_update to be more
consistant.
1999-09-10 Michael Meeks <michael@nuclecu.unam.mx>
* src/corba-sheet.c: include selection.h
......
1999-09-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-widget.c (sheet_object_widget_update_bounds) :
Don't zoom coords sheet_object_get_bounds takes care of that
for us.
* src/sheet-object-container.c (sheet_object_container_update_bounds) :
Ditto.
* src/sheet-object-graphic.c (sheet_object_filled_update_bounds) :
Ditto, renamed from sheet_object_filled_update to be more
consistant.
1999-09-10 Michael Meeks <michael@nuclecu.unam.mx>
* src/corba-sheet.c: include selection.h
......
......@@ -348,15 +348,9 @@ sheet_object_container_update_bounds (SheetObject *so)
{
GList *l;
double x1, y1, x2, y2;
double const zoom = so->sheet->last_zoom_factor_used;
sheet_object_get_bounds (so, &x1, &y1, &x2, &y2);
x1 *= zoom;
y1 *= zoom;
x2 *= zoom;
y2 *= zoom;
for (l = so->realized_list; l; l = l->next){
GnomeCanvasItem *item = l->data;
......
......@@ -188,19 +188,13 @@ sheet_object_filled_realize (SheetObject *so, SheetView *sheet_view)
}
static void
sheet_object_filled_update (SheetObject *so)
sheet_object_filled_update_bounds (SheetObject *so)
{
GList *l;
double x1, y1, x2, y2;
double zoom = so->sheet->last_zoom_factor_used;
sheet_object_get_bounds (so, &x1, &y1, &x2, &y2);
x1 *= zoom;
y1 *= zoom;
x2 *= zoom;
y2 *= zoom;
for (l = so->realized_list; l; l = l->next){
GnomeCanvasItem *item = l->data;
......@@ -220,7 +214,7 @@ sheet_object_filled_class_init (GtkObjectClass *object_class)
object_class->destroy = sheet_object_filled_destroy;
sheet_object_class->realize = sheet_object_filled_realize;
sheet_object_class->update_bounds = sheet_object_filled_update;
sheet_object_class->update_bounds = sheet_object_filled_update_bounds;
}
/*
......
......@@ -50,14 +50,9 @@ sheet_object_widget_update_bounds (SheetObject *so)
{
GList *l;
double x1, y1, x2, y2;
double zoom = so->sheet->last_zoom_factor_used;
sheet_object_get_bounds (so, &x1, &y1, &x2, &y2);
x1 *= zoom;
y1 *= zoom;
x2 *= zoom;
y2 *= zoom;
for (l = so->realized_list; l; l = l->next){
GnomeCanvasItem *item = l->data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment