diff options
| author | Ted Gould <ted@gould.cx> | 2008-10-27 18:03:09 +0000 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2008-10-27 18:03:09 +0000 |
| commit | 7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch) | |
| tree | 7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/dialogs/swatches.cpp | |
| parent | Merging from trunk (diff) | |
| download | inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip | |
From trunk
(bzr r6885)
Diffstat (limited to 'src/dialogs/swatches.cpp')
| -rw-r--r-- | src/dialogs/swatches.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dialogs/swatches.cpp b/src/dialogs/swatches.cpp index 5d76cc8f6..71c16d87a 100644 --- a/src/dialogs/swatches.cpp +++ b/src/dialogs/swatches.cpp @@ -1047,9 +1047,9 @@ SwatchesPanel::SwatchesPanel(gchar const* prefsPath) : if ( !possible.empty() ) { JustForNow* first = 0; Glib::ustring targetName; - if ( _prefs_path ) { + if ( !_prefs_path.empty() ) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - targetName = prefs->getString(_prefs_path, "palette"); + targetName = prefs->getString(_prefs_path + "/palette"); if (!targetName.empty()) { for ( std::vector<JustForNow*>::iterator iter = possible.begin(); iter != possible.end(); ++iter ) { if ( (*iter)->_name == targetName ) { @@ -1123,9 +1123,9 @@ void SwatchesPanel::_handleAction( int setId, int itemId ) _holder->clear(); JustForNow* curr = possible[itemId]; - if ( _prefs_path ) { + if ( !_prefs_path.empty() ) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - prefs->setString(_prefs_path, "palette", curr->_name); + prefs->setString(_prefs_path + "/palette", curr->_name); } if ( curr->_prefWidth > 0 ) { |
