diff options
| author | Jabiertxof <jtx@jtx> | 2017-05-07 00:23:42 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-05-07 00:23:42 +0000 |
| commit | ae91bcdbb542c5e7233b0d33f8aba42439408587 (patch) | |
| tree | ec12d9e9ddc9f4e88b7a629861f0102d6519a87f /src/ui | |
| parent | Add missing files (diff) | |
| download | inkscape-ae91bcdbb542c5e7233b0d33f8aba42439408587.tar.gz inkscape-ae91bcdbb542c5e7233b0d33f8aba42439408587.zip | |
Reorder LPE enum to match definition in effect.cpp. also fix a bug pointed by Ede_123 in IRC, LPE dialog show bad default selected LPE
(bzr r15670)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/livepatheffect-add.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp index cada915c9..ba9d33f0a 100644 --- a/src/ui/dialog/livepatheffect-add.cpp +++ b/src/ui/dialog/livepatheffect-add.cpp @@ -52,13 +52,21 @@ LivePathEffectAdd::LivePathEffectAdd() : /** * Initialize Effect list */ + int show = LivePathEffect::ATTACH_PATH; +#ifdef LPE_ENABLE_TEST_EFFECTS + //TODO: Handle when showing the experimental effects without setting flag + show = LivePathEffect::ANGLE_BISECTOR; +#elif WITH_LPETOOL + //TODO: Handle when showing the experimental effects without setting flag + show = LivePathEffect::ANGLE_BISECTOR; +#endif + for(int i = 0; i < static_cast<int>(converter._length); ++i) { Gtk::TreeModel::Row row = *(effectlist_store->append()); const Util::EnumData<LivePathEffect::EffectType>* data = &converter.data(i); row[_columns.name] = _( converter.get_label(data->id).c_str() ); row[_columns.data] = data; - - if (i == 0) { + if (i == show) { Glib::RefPtr<Gtk::TreeSelection> select = effectlist_treeview.get_selection(); select->select(row); } |
