diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2011-09-04 18:11:51 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2011-09-04 18:11:51 +0000 |
| commit | 1c0a4eca434ada5675c6edc476325b7bb64da1a6 (patch) | |
| tree | 75c5ac045388b1be8cedc8ac8f8177f10c7bea38 /src/widgets/select-toolbar.cpp | |
| parent | Allow changing dimensions of vertical/horizontal lines using the numeric inpu... (diff) | |
| download | inkscape-1c0a4eca434ada5675c6edc476325b7bb64da1a6.tar.gz inkscape-1c0a4eca434ada5675c6edc476325b7bb64da1a6.zip | |
1) Fix absolute scaling in transform dialog
2) Transform dialog now follows the user prefs for geometric vs. visual bounding box
(bzr r10615)
Diffstat (limited to 'src/widgets/select-toolbar.cpp')
| -rw-r--r-- | src/widgets/select-toolbar.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp index 7b8b54fee..38346ce56 100644 --- a/src/widgets/select-toolbar.cpp +++ b/src/widgets/select-toolbar.cpp @@ -248,11 +248,13 @@ sp_object_layout_any_value_changed(GtkAdjustment *adj, SPWidget *spw) Geom::Affine scaler; if (bbox_type == SPItem::VISUAL_BBOX) { - scaler = get_scale_transform_with_unequal_stroke (*bbox_vis, *bbox_geom, transform_stroke, x0, y0, x1, y1); + scaler = get_scale_transform_for_variable_stroke (*bbox_vis, *bbox_geom, transform_stroke, x0, y0, x1, y1); } else { - // get_scale_transform_with_stroke() is intended for visual bounding boxes, not geometrical ones! + // 1) We could have use the newer get_scale_transform_for_variable_stroke() here, but to avoid regressions + // we'll just use the old get_scale_transform_for_uniform_stroke() for now. + // 2) get_scale_transform_for_uniform_stroke() is intended for visual bounding boxes, not geometrical ones! // we'll trick it into using a geometric bounding box though, by setting the stroke width to zero - scaler = get_scale_transform_with_uniform_stroke (*bbox_geom, 0, false, x0, y0, x1, y1); + scaler = get_scale_transform_for_uniform_stroke (*bbox_geom, 0, false, x0, y0, x1, y1); } sp_selection_apply_affine(selection, scaler); |
