<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 8:56 AM, Thorsten Zachmann <span dir="ltr"><<a href="mailto:t.zachmann@zagge.de" target="_blank">t.zachmann@zagge.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Monday 27 May 2013 21:19:56 Elvis Stansvik wrote:<br>
> Hi all,<br>
><br>
> Currently trying to track down a bug and realized I'm a little unsure about<br>
> something.<br>
><br>
> The style manager creates a bunch of default list/bibliography/ToC styles<br>
> upon construction. What should we do if, during loading, we encounter a<br>
> style who's name clashes with one of these default styles?<br>
><br>
> Intuitively I think we should replace the default style with the one found<br>
> in the ODT, but since the code doesn't seem to do this currently, I thought<br>
> I'd ask.<br>
<br>
</div></div>I think so too. Maybe rename the one found in the defaults.<br></blockquote><div style>+1 to this but there is a catch here. If we do it this way there will be more default styles that is created on each roundtrip</div>
<div style>viz</div><div style>DefaultStyle</div><div style>DefaultStyle_Save1</div><div style>DefaultStyle_Save2.....</div><div style>which is unused.</div><div style><br></div><div style>What we could do is save the DefaultStyle only if it used in the document.  </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thorsten<br>
_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</blockquote></div><br>With regards,</div><div class="gmail_extra">Gopalakrishna<br clear="all"><div><br></div>-- <br>My blog <a href="http://gkbhat.blogspot.com">http://gkbhat.blogspot.com</a>
</div></div>