diff options
Diffstat (limited to 'src/prefs-utils.cpp')
| -rw-r--r-- | src/prefs-utils.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/prefs-utils.cpp b/src/prefs-utils.cpp index 14a37ee4b..5e01b1903 100644 --- a/src/prefs-utils.cpp +++ b/src/prefs-utils.cpp @@ -17,7 +17,13 @@ #include "inkscape.h" #include "xml/repr.h" - +/** +\brief Checks if the path exists in the preference file +*/ +bool pref_path_exists(gchar const *path){ + Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); + return (repr != NULL); +} void prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value) { |
