diff options
| author | Arcadie M. Cracan <acracan@gmail.com> | 2009-12-27 11:31:36 +0000 |
|---|---|---|
| committer | Arcadie M. Cracan <acracan@gmail.com> | 2009-12-27 11:31:36 +0000 |
| commit | 30eaa4a74569f4fc5ee802ee3883201379c18235 (patch) | |
| tree | af9d0af2df52735f67a9f4af1a821f6d2fe2f242 /src/main.cpp | |
| parent | Connector tool: make connectors avoid the convex hull of shapes. (diff) | |
| parent | Warning cleanup (diff) | |
| download | inkscape-30eaa4a74569f4fc5ee802ee3883201379c18235.tar.gz inkscape-30eaa4a74569f4fc5ee802ee3883201379c18235.zip | |
Connector tool: make connectors avoid the convex hull of shapes.
(bzr r8857.1.2)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index f96d99e11..75e882e99 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -566,8 +566,12 @@ main(int argc, char **argv) // TODO these should use xxxW() calls explicitly and convert UTF-16 <--> UTF-8 SetCurrentDirectory(homedir.c_str()); _win32_set_inkscape_env(homedir); - RegistryTool rt; - rt.setPathInfo(); + // Don't touch the registry (works fine without it) for Inkscape Portable + gchar const *val = g_getenv("INKSCAPE_PORTABLE_PROFILE_DIR"); + if (!val) { + RegistryTool rt; + rt.setPathInfo(); + } #endif // Prevents errors like "Unable to wrap GdkPixbuf..." (in nr-filter-image.cpp for example) |
