@@ -852,7 +852,7 @@ class KnobObject final : public ObjectBase {
852852
853853 auto sym = String::fromUTF8 (knb->x_snd_raw ->s_name );
854854 if (sym != " empty" ) {
855- return sym;
855+ return sym. replace ( " \\ " , " " ) ;
856856 }
857857 }
858858
@@ -869,7 +869,7 @@ class KnobObject final : public ObjectBase {
869869
870870 auto sym = String::fromUTF8 (knb->x_rcv_raw ->s_name );
871871 if (sym != " empty" ) {
872- return sym;
872+ return sym. replace ( " \\ " , " " ) ;
873873 }
874874 }
875875
@@ -1051,32 +1051,30 @@ class KnobObject final : public ObjectBase {
10511051 auto const * constrainer = getConstrainer ();
10521052 auto const size = std::max (::getValue<int >(sizeProperty), constrainer->getMinimumWidth ());
10531053 setParameterExcludingListener (sizeProperty, size);
1054- if (auto knob = ptr.get <t_fake_knob>()) {
1054+ if (auto knob = ptr.get <t_fake_knob>())
10551055 knob->x_size = size;
1056- }
10571056
10581057 object->updateBounds ();
10591058 knob.setValue (getValue ());
10601059 updateLabel ();
10611060 } else if (value.refersToSameSourceAs (min)) {
10621061 // set new min value and update knob
1063- if (auto knb = ptr.get <t_fake_knob>()) {
1062+ if (auto knb = ptr.get <t_fake_knob>())
10641063 pd->sendDirectMessage (knb.get (), " range" , {::getValue<float >(min), knb->x_max });
1065- }
1064+
10661065 knob.setValue (getValue ());
10671066 updateRange ();
10681067 updateDoubleClickValue ();
10691068 updateLabel ();
10701069 } else if (value.refersToSameSourceAs (max)) {
10711070 // set new min value and update knob
1072- if (auto knb = ptr.get <t_fake_knob>()) {
1071+ if (auto knb = ptr.get <t_fake_knob>())
10731072 pd->sendDirectMessage (knb.get (), " range" , {knb->x_min , ::getValue<float >(max)});
1074- }
1073+
10751074 knob.setValue (getValue ());
10761075 updateRange ();
10771076 updateDoubleClickValue ();
10781077 updateLabel ();
1079-
10801078 } else if (value.refersToSameSourceAs (initialValue)) {
10811079 updateDoubleClickValue ();
10821080 if (auto knb = ptr.get <t_fake_knob>())
@@ -1087,26 +1085,22 @@ class KnobObject final : public ObjectBase {
10871085 if (auto knb = ptr.get <t_fake_knob>())
10881086 knb->x_circular = mode;
10891087 } else if (value.refersToSameSourceAs (showTicks)) {
1090- if (auto knb = ptr.get <t_fake_knob>()) {
1088+ if (auto knb = ptr.get <t_fake_knob>())
10911089 knb->x_ticks = ::getValue<int >(showTicks);
1092- }
10931090 updateRotaryParameters ();
10941091 } else if (value.refersToSameSourceAs (steps)) {
10951092 steps = jmax (::getValue<int >(steps), 0 );
1096- if (auto knb = ptr.get <t_fake_knob>()) {
1093+ if (auto knb = ptr.get <t_fake_knob>())
10971094 knb->x_steps = ::getValue<int >(steps);
1098- }
10991095 updateRotaryParameters ();
11001096 updateRange ();
11011097 } else if (value.refersToSameSourceAs (angularRange)) {
1102- if (auto knb = ptr.get <t_fake_knob>()) {
1098+ if (auto knb = ptr.get <t_fake_knob>())
11031099 pd->sendDirectMessage (knb.get (), " angle" , { pd::Atom (::getValue<int >(angularRange)) });
1104- }
11051100 updateRotaryParameters ();
11061101 } else if (value.refersToSameSourceAs (angularOffset)) {
1107- if (auto knb = ptr.get <t_fake_knob>()) {
1102+ if (auto knb = ptr.get <t_fake_knob>())
11081103 pd->sendDirectMessage (knb.get (), " offset" , { pd::Atom (::getValue<int >(angularOffset)) });
1109- }
11101104 updateRotaryParameters ();
11111105 } else if (value.refersToSameSourceAs (showArc)) {
11121106 bool const arc = ::getValue<bool >(showArc);
@@ -1118,15 +1112,13 @@ class KnobObject final : public ObjectBase {
11181112 knb->x_discrete = ::getValue<bool >(discrete);
11191113 updateRange ();
11201114 } else if (value.refersToSameSourceAs (square)) {
1121- if (auto knb = ptr.get <t_fake_knob>()) {
1115+ if (auto knb = ptr.get <t_fake_knob>())
11221116 knb->x_square = ::getValue<bool >(square);
1123- }
11241117 repaint ();
11251118 } else if (value.refersToSameSourceAs (exponential)) {
11261119 if (auto knb = ptr.get <t_fake_knob>()) {
1127- if (knb->x_expmode == 2 ) {
1120+ if (knb->x_expmode == 2 )
11281121 knb->x_exp = ::getValue<float >(exponential);
1129- }
11301122 }
11311123 } else if (value.refersToSameSourceAs (logMode)) {
11321124 if (auto knb = ptr.get <t_fake_knob>()) {
0 commit comments