summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-10-07 13:28:07 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-10-07 13:28:07 +0000
commit2f1ba7bcc2d4d45d1d9ea36c023a1998c7f1f1b9 (patch)
treecb6d3d7184a0f591dafaf785024f1dddca168588 /src
parentFix crash in filter dialog (diff)
downloadinkscape-2f1ba7bcc2d4d45d1d9ea36c023a1998c7f1f1b9.tar.gz
inkscape-2f1ba7bcc2d4d45d1d9ea36c023a1998c7f1f1b9.zip
Fix dot size for calligraphy
Diffstat (limited to 'src')
-rw-r--r--src/ui/tools/freehand-base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp
index 8589b896b..51da7f201 100644
--- a/src/ui/tools/freehand-base.cpp
+++ b/src/ui/tools/freehand-base.cpp
@@ -1038,7 +1038,7 @@ void spdc_create_single_dot(ToolBase *ec, Geom::Point const &pt, char const *too
Geom::Point pp = pt * i2d.inverse();
double rad = 0.5 * prefs->getDouble(tool_path + "/dot-size", 3.0);
if (!strcmp(tool, "/tools/calligraphic"))
- rad = 0.1 * prefs->getDouble(tool_path + "/width", 3.0) / desktop->current_zoom();
+ rad = 0.0333 * prefs->getDouble(tool_path + "/width", 3.0) / desktop->current_zoom() / desktop->getDocument()->getDocumentScale()[Geom::X];
if (event_state & GDK_MOD1_MASK) {
// TODO: We vary the dot size between 0.5*rad and 1.5*rad, where rad is the dot size
// as specified in prefs. Very simple, but it might be sufficient in practice. If not,