<div class="gmail_quote">On Thu, Feb 17, 2011 at 11:43 PM, Silvio Heinrich <span dir="ltr"><<a href="mailto:plassy@web.de">plassy@web.de</a>></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>
> I have merged the first part, ie, you can now select multiple sensors, but can<br>
> only use one curve. And we will keep the branch alive for multiple curve<br>
> support.<br>
><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'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't. I don't know if the presets fail to<br>
load or simply fail to show up.<br>
And I'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> <param name="DarkenSensor"><![CDATA[<!DOCTYPE params> <params id="pressure"> <curve><![CDATA[0,0;1,1;]]></curve> </params> ]]></param><br>
<br>The sensor uses a cdata section to save, but inside it there is another cdata section for the curve. XML doesn'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>