<div class="gmail_quote">On Thu, Feb 17, 2011 at 11:43 PM, Silvio Heinrich <span dir="ltr">&lt;<a href="mailto:plassy@web.de">plassy@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 02/07/2011 09:21 AM, Cyrille Berger Skott wrote:<br>
&gt; I have merged the first part, ie, you can now select multiple sensors, but can<br>
&gt; only use one curve. And we will keep the branch alive for multiple curve<br>
&gt; support.<br>
&gt;<br>
<br>
I encountered some strange behavior. When saving a PaintOp preset it<br>
will show up in the<br>
preset chooser list and you can use it. the preset will also be saved to<br>
disk.<br>
But after restarting krita, the last saved presets won&#39;t show up in the<br>
preset chooser list.<br>
All old presets that I saved before the multi_sensor branch was merged<br>
will show up in the list.<br>
Only the newly created ones won&#39;t. I don&#39;t know if the presets fail to<br>
load or simply fail to show up.<br>
And I&#39;m not 100% sure that this is because of the multi_sensor branch.<br>
<br>
It would be nice if you could have a look :)<br>
And maybe someone else could try out and confirm or deny this problem.<br>

</blockquote></div><br>The problem is this:<br> &lt;param name=&quot;DarkenSensor&quot;&gt;&lt;![CDATA[&lt;!DOCTYPE params&gt; &lt;params id=&quot;pressure&quot;&gt; &lt;curve&gt;&lt;![CDATA[0,0;1,1;]]&gt;&lt;/curve&gt; &lt;/params&gt; ]]&gt;&lt;/param&gt;<br>
<br>The sensor uses a cdata section to save, but inside it there is another cdata section for the curve. XML doesn&#39;t allow the sections to be nested, so it fails on loading the presets.<br>Possible solution could be to not use a cdata section for the curve. But we have to check if that effects backwards compatibility for presets (Is it backwards compatible?).<br>