summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-05-07 00:23:42 +0000
committerJabiertxof <jtx@jtx>2017-05-07 00:23:42 +0000
commitae91bcdbb542c5e7233b0d33f8aba42439408587 (patch)
treeec12d9e9ddc9f4e88b7a629861f0102d6519a87f /src/ui
parentAdd missing files (diff)
downloadinkscape-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.cpp12
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);
}