diff options
| author | Alvin Penner <penner@vaxxine.com> | 2017-03-27 13:00:06 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2017-03-27 13:00:06 +0000 |
| commit | 92736adeb294888c4ae0010007582083a17f0043 (patch) | |
| tree | 3e57c0cbb6b0a4c57d1eec68c4652431ff4a3968 /src/splivarot.cpp | |
| parent | Translation update by Igor Zhigunov (diff) | |
| download | inkscape-92736adeb294888c4ae0010007582083a17f0043.tar.gz inkscape-92736adeb294888c4ae0010007582083a17f0043.zip | |
convert Preferences Inset/Outset to document units. (Bug 1542093)
Fixed bugs:
- https://launchpad.net/bugs/1542093
(bzr r15610)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 22efe38ed..125c1e068 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -46,6 +46,7 @@ #include "splivarot.h" #include "verbs.h" #include "2geom/svg-path-parser.h" // to get from SVG on boolean to Geom::Path +#include "util/units.h" // to get abbr for document units using Inkscape::DocumentUndo; @@ -1688,7 +1689,7 @@ void sp_selected_path_offset(SPDesktop *desktop) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - double prefOffset = prefs->getDouble("/options/defaultoffsetwidth/value", 1.0, "px"); + double prefOffset = prefs->getDouble("/options/defaultoffsetwidth/value", 1.0, desktop->getDocument()->getDisplayUnit()->abbr); sp_selected_path_do_offset(desktop, true, prefOffset); } @@ -1696,7 +1697,7 @@ void sp_selected_path_inset(SPDesktop *desktop) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - double prefOffset = prefs->getDouble("/options/defaultoffsetwidth/value", 1.0, "px"); + double prefOffset = prefs->getDouble("/options/defaultoffsetwidth/value", 1.0, desktop->getDocument()->getDisplayUnit()->abbr); sp_selected_path_do_offset(desktop, false, prefOffset); } @@ -1782,7 +1783,7 @@ void sp_selected_path_create_offset_object(SPDesktop *desktop, int expand, bool { { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - o_width = prefs->getDouble("/options/defaultoffsetwidth/value", 1.0, "px"); + o_width = prefs->getDouble("/options/defaultoffsetwidth/value", 1.0, desktop->getDocument()->getDisplayUnit()->abbr); } if (o_width < 0.01){ |
