From 2f1ba7bcc2d4d45d1d9ea36c023a1998c7f1f1b9 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sun, 7 Oct 2018 15:28:07 +0200 Subject: Fix dot size for calligraphy --- src/ui/tools/freehand-base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3