[gnumeric] Fixed objects size after dragging.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fixed objects size after dragging.
- Date: Tue, 19 Mar 2013 07:19:43 +0000 (UTC)
commit 888590bc7b35cc8162b30bfb23b591a2be139545
Author: Jean Brefort <jean brefort normalesup org>
Date: Tue Mar 19 08:25:15 2013 +0100
Fixed objects size after dragging.
ChangeLog | 5 +++++
src/sheet-control-gui.c | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7c49202..3978433 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-19 Jean Brefort <jean brefort normalesup org>
+
+ * src/sheet-control-gui.c (cb_collect_objects_to_commit): fixed not sizeable
+ objects bounds after dragging when zoom is not 100%.
+
2013-03-18 Morten Welinder <terra gnome org>
* src/wbc-gtk.c (gnm_font_action_create_tool_item): Disable the
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index de1511d..fd6a638 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -2808,9 +2808,10 @@ cb_collect_objects_to_commit (SheetObject *so, double *coords, CollectObjectsDat
SheetObjectAnchor *anchor = sheet_object_anchor_dup (
sheet_object_get_anchor (so));
if (!sheet_object_can_resize (so)) {
+ double scale = goc_canvas_get_pixels_per_unit (GOC_CANVAS (data->scg->pane[0])) / 72.;
sheet_object_default_size (so, coords + 2, coords + 3);
- coords[2] *= gnm_app_display_dpi_get (TRUE) / 72;
- coords[3] *= gnm_app_display_dpi_get (FALSE) / 72;
+ coords[2] *= gnm_app_display_dpi_get (TRUE) * scale;
+ coords[3] *= gnm_app_display_dpi_get (FALSE) * scale;
coords[2] += coords[0];
coords[3] += coords[1];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]