From 2693298825f44a6779cfe5fbc778f83b3d950720 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 14 Aug 2019 09:37:21 +0200 Subject: [PATCH] fixed 'individual width' option working incorrectly, and displayed incorrectly when editing --- pattern2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pattern2.cpp b/pattern2.cpp index b97d4b07..4182593f 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -2587,7 +2587,7 @@ EX namespace linepatterns { for(auto& lp: patterns) { string name = XLAT(lp.lpname); if(GOLDBERG && among(lp.id, patVine, patPower)) name = XLAT("Goldberg"); - if(indiv) { + if(!indiv) { dialog::addColorItem(name, lp.color, 'a'+(id++)); dialog::add_action([&lp] () { dialog::openColorDialog(lp.color, NULL); @@ -2596,7 +2596,7 @@ EX namespace linepatterns { } else { dialog::addSelItem(name, fts(lp.multiplier), 'a'+(id++)); - dialog::add_action([&lp] () { dialog::editNumber(lp.multiplier, 0, 10, 0.1, 1, XLAT("line width"), ""), dialog::scaleLog(); }); + dialog::add_action([&lp] () { dialog::editNumber(lp.multiplier, 0.001, 10, 0.1, 1, XLAT("line width"), ""), dialog::scaleLog(); }); } }