Strange thing in inkscape.cpp (?)

Bug #165596 reported by N0b0dy2004
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

There's something in inkscape.cpp which I'm not sure is
a bug or not. Take a
look at the 2 code pieces below. There are 2 parameters
(%s) in the "e_mkdir"
argument string of the "inkscape_init_config" call
(second code piece), but
only 1 value (dn) is specified when using this string
in the
"gtk_message_dialog_new" call (first code piece).

----------
static void
inkscape_init_config (SPReprDoc *doc, const gchar
*config_name, const gchar *skeleton, unsigned int
skel_size,
              const gchar *e_mkdir, const gchar
*e_notdir, const gchar *e_ccf, const gchar *e_cwf)
{
    gchar * dn, *fn;
    FILE *fh;
    GtkWidget * w;

    dn = profile_path(NULL);
    if (!g_file_test(dn, G_FILE_TEST_EXISTS)) {
        if (mkdir (dn, S_IRWXU | S_IRGRP | S_IXGRP))
        {
            /* Cannot create directory */
            w = gtk_message_dialog_new (NULL,
GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
e_mkdir, dn);
            gtk_dialog_run (GTK_DIALOG (w));
----------

----------
    inkscape_init_config (inkscape->preferences,
PREFERENCES_FILE, preferences_skeleton,
PREFERENCES_SKELETON_SIZE,
                  _("Cannot create directory %s.\n"
                "Although inkscape will run, you\n"
                "are neither able to load nor save\n"
                "%s."),
----------

Tags: other
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

You're right. I fixed that, and rewrote that part to remove
redundancy in error messages.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.