diff options
| author | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-07-01 07:07:35 +0000 |
|---|---|---|
| committer | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-07-01 07:07:35 +0000 |
| commit | 2c22c31cb8650ad49f5e83c9221524f4cdcd3ddd (patch) | |
| tree | a669b2ab697a09dbce18cf1f6c5481b73480b5f8 /src | |
| parent | Solve some compiler errors (diff) | |
| download | inkscape-2c22c31cb8650ad49f5e83c9221524f4cdcd3ddd.tar.gz inkscape-2c22c31cb8650ad49f5e83c9221524f4cdcd3ddd.zip | |
Solve a spacing issue & fix buttons to add selectors when existing drawing is opened
(bzr r14949.1.35)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/styledialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp index 3d2091aef..3ee0e44f7 100644 --- a/src/ui/dialog/styledialog.cpp +++ b/src/ui/dialog/styledialog.cpp @@ -20,7 +20,7 @@ using Inkscape::Util::List; using Inkscape::XML::AttributeRecord; -#define REMOVE_SPACES(x) x.erase(std::remove(x.begin(), x.end(), ' '), x.end()); +#define REMOVE_SPACES(x) x.erase(0, x.find_first_not_of(' ')); namespace Inkscape { namespace UI { @@ -450,6 +450,7 @@ std::string StyleDialog::_populateTree(std::vector<std::pair<std::string, for(unsigned it = 0; it < _selectorVec.size(); ++it) { Gtk::TreeModel::Row row = *(_store->append()); row[_mColumns._selectorLabel] = _selectorVec[it].first; + row[_mColumns._colAddRemove] = true; _selectorVec[it].second = _selectorVec[it].second + "\n"; std::string selValue = _selectorVec[it].second; selectorValue.append(selValue.c_str()); |
