diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-04-09 08:01:49 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-04-09 08:01:49 +0000 |
| commit | 6ed5d94a27a8d8793c6db39b6a3b18139119275d (patch) | |
| tree | 9066cb23cb994555780e3a8cbd608fe1e3b98890 /src/ui | |
| parent | cppcheck tells us: "scanf without field width limits can crash with huge inpu... (diff) | |
| download | inkscape-6ed5d94a27a8d8793c6db39b6a3b18139119275d.tar.gz inkscape-6ed5d94a27a8d8793c6db39b6a3b18139119275d.zip | |
omitting debug message on windows
(bzr r11192)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 269266083..6d76f5784 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -129,7 +129,6 @@ InkscapePreferences::InkscapePreferences() initPageRendering(); initPageSpellcheck(); - signalPresent().connect(sigc::mem_fun(*this, &InkscapePreferences::_presentPages)); //calculate the size request for this dialog @@ -1344,38 +1343,41 @@ void InkscapePreferences::initPageSpellcheck() GetModuleFileName(NULL, exeName, MAX_PATH); char *slashPos = strrchr(exeName, '\\'); if (slashPos) + { *slashPos = '\0'; - g_print ("%s\n", exeName); + } + // g_print ("%s\n", exeName); aspell_config_replace(config, "prefix", exeName); #endif - /* the returned pointer should _not_ need to be deleted */ - AspellDictInfoList *dlist = get_aspell_dict_info_list(config); - - /* config is no longer needed */ - delete_aspell_config(config); - - AspellDictInfoEnumeration *dels = aspell_dict_info_list_elements(dlist); - - languages.push_back(Glib::ustring(_("None"))); - langValues.push_back(Glib::ustring("")); - - const AspellDictInfo *entry; - int en_index = 0; - int i = 0; - while ( (entry = aspell_dict_info_enumeration_next(dels)) != 0) - { - languages.push_back(Glib::ustring(entry->name)); - langValues.push_back(Glib::ustring(entry->name)); - if (!strcmp (entry->name, "en")) - en_index = i; - i ++; - } - - delete_aspell_dict_info_enumeration(dels); + /* the returned pointer should _not_ need to be deleted */ + AspellDictInfoList *dlist = get_aspell_dict_info_list(config); + + /* config is no longer needed */ + delete_aspell_config(config); + + AspellDictInfoEnumeration *dels = aspell_dict_info_list_elements(dlist); + + languages.push_back(Glib::ustring(_("None"))); + langValues.push_back(Glib::ustring("")); + + const AspellDictInfo *entry; + int en_index = 0; + int i = 0; + while ( (entry = aspell_dict_info_enumeration_next(dels)) != 0) + { + languages.push_back(Glib::ustring(entry->name)); + langValues.push_back(Glib::ustring(entry->name)); + if (!strcmp (entry->name, "en")) + { + en_index = i; + } + i++; + } + delete_aspell_dict_info_enumeration(dels); - _spell_language.init( "/dialogs/spellcheck/lang", &languages[0], &langValues[0], languages.size(), languages[en_index]); + _spell_language.init( "/dialogs/spellcheck/lang", &languages[0], &langValues[0], languages.size(), languages[en_index]); _page_spellcheck.add_line( false, _("Language:"), _spell_language, "", _("Set the main spell check language"), false); |
