diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-05-29 19:15:08 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-05-29 19:15:08 +0000 |
| commit | 22e5131176ae8ca14aebb445203144fba3d1dfc9 (patch) | |
| tree | 038f531ff71e2e0a1805c3d27cfb053d54a3bbff /src/extension/init.cpp | |
| parent | fix some crashes. Now I check for the existence of the d atrtibute (diff) | |
| download | inkscape-22e5131176ae8ca14aebb445203144fba3d1dfc9.tar.gz inkscape-22e5131176ae8ca14aebb445203144fba3d1dfc9.zip | |
Create a new macro in path-prefix.h, WIN32_DATADIR, that works similarly to BR_DATADIR. This should solve the "current directory" problems. This is a temporary fix.
(bzr r5762)
Diffstat (limited to 'src/extension/init.cpp')
| -rw-r--r-- | src/extension/init.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/extension/init.cpp b/src/extension/init.cpp index 649a65471..458f15e78 100644 --- a/src/extension/init.cpp +++ b/src/extension/init.cpp @@ -239,27 +239,7 @@ init() { Inkscape::Extension::Extension::search_path.push_back(profile_path("extensions")); -#ifdef WIN32 -/* - * The native Windows Save dialogs change the current directory of Inkscape to the path selected in the dialog - * Putting relative paths in the search_path breaks things after the Save dialog ha been shown - * Especially the XAML-save: https://bugs.launchpad.net/inkscape/+bug/168896 - * This code inserts an absolute path based on the current working dir when Inkscape starts. - * Only included in WIN32 to avoid messing around with other platforms for the moment - * After testing on other platforms this code can be enabled on other platforms (it "should" not break anything). - */ - gchar * cwd = g_get_current_dir(); - gchar * fname = g_build_filename( - cwd, - g_strdup(INKSCAPE_EXTENSIONDIR), - NULL); - Glib::ustring filename = fname; - Inkscape::Extension::Extension::search_path.push_back(g_strdup(filename.c_str())); - g_free(cwd); - g_free(fname); -#else Inkscape::Extension::Extension::search_path.push_back(g_strdup(INKSCAPE_EXTENSIONDIR)); -#endif } |
