summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-06-01 14:23:59 +0000
committertavmjong-free <tavmjong@free.fr>2016-06-01 14:23:59 +0000
commit2f5976ec1d6d01e8af67faeff271230bc952a524 (patch)
tree2e4c16ca0b138f087e6808798c7eee48ff358d10 /src
parentFix tiling when generic template used to create file. (diff)
downloadinkscape-2f5976ec1d6d01e8af67faeff271230bc952a524.tar.gz
inkscape-2f5976ec1d6d01e8af67faeff271230bc952a524.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/clonetiler.cpp3
1 files changed, 2 insertions, 1 deletions
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);