Skip to content

Instantly share code, notes, and snippets.

@su-v
Created January 25, 2017 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save su-v/6152a6c27b380ac2f888e1e647c9f90e to your computer and use it in GitHub Desktop.
Save su-v/6152a6c27b380ac2f888e1e647c9f90e to your computer and use it in GitHub Desktop.
=== modified file 'src/ui/dialog/aboutbox.cpp'
--- src/ui/dialog/aboutbox.cpp 2016-12-31 12:46:40 +0000
+++ src/ui/dialog/aboutbox.cpp 2017-01-25 22:51:25 +0000
@@ -176,6 +176,9 @@
// should be in UTF-*8..
char *about=g_build_filename(INKSCAPE_SCREENSDIR, _("about.svg"), NULL);
+ if (!g_file_test (about, G_FILE_TEST_EXISTS)) {
+ about=g_build_filename(INKSCAPE_SCREENSDIR, "about.svg", NULL);
+ }
SPDocument *doc=SPDocument::createNewDoc (about, TRUE);
g_free(about);
g_return_val_if_fail(doc != NULL, NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment