From 2f5976ec1d6d01e8af67faeff271230bc952a524 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 1 Jun 2016 16:23:59 +0200 Subject: Fix tiling when generic template used to create file. Try 2. ------------- This line and the following will be ignored -------------- modified: src/ui/dialog/clonetiler.cpp unknown: inkscape_glyph_cursor.txt latex.patch libnrtype_OLD/ share/attributes/attindex.html share/attributes/propidx.html share/extensions/six.py share/icons/icons_template.svg share/icons/symbolic_icons_purged.svg src/cxxtests.xml src/default.svg src/export-objects/ src/glist_removal.diff src/sp-text.cpp_save src/display/cairo-utils.cpp_dither src/display/cairo-utils.h_dither src/display/drawing-shape.cpp_dither src/libnrtype/Layout-TNG-Input.cpp_attempt_to_replace_linefeeds src/libnrtype/Layout-TNG-Input.cpp_works src/ui/dialog/tags_backup.cpp (bzr r14937) --- src/ui/dialog/clonetiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/dialog/clonetiler.cpp') diff --git a/src/ui/dialog/clonetiler.cpp b/src/ui/dialog/clonetiler.cpp index 1c5968493..b727c87ee 100644 --- a/src/ui/dialog/clonetiler.cpp +++ b/src/ui/dialog/clonetiler.cpp @@ -2266,7 +2266,8 @@ void CloneTiler::clonetiler_apply(GtkWidget */*widget*/, GtkWidget *dlg) clonetiler_remove (NULL, dlg, false); - double scale_units = Inkscape::Util::Quantity::convert(1, "px", desktop->getDocument()->getDisplayUnit()); + Geom::Scale scale = desktop->getDocument()->getDocumentScale().inverse(); + double scale_units = scale[Geom::X]; // Use just x direction.... double shiftx_per_i = 0.01 * prefs->getDoubleLimited(prefs_path + "shiftx_per_i", 0, -10000, 10000); double shifty_per_i = 0.01 * prefs->getDoubleLimited(prefs_path + "shifty_per_i", 0, -10000, 10000); -- cgit v1.2.3