changed it and pushed to master: <a href="http://cgit.freedesktop.org/libreoffice/core/commit/?id=8b8f6835e60e179de616117f59af64d6f2c34b0a">http://cgit.freedesktop.org/libreoffice/core/commit/?id=8b8f6835e60e179de616117f59af64d6f2c34b0a</a><br>
<br><div class="gmail_quote">2011/8/6 Kohei Yoshida <span dir="ltr"><<a href="mailto:kohei.yoshida@suse.com">kohei.yoshida@suse.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Markus,<br>
<div><div></div><div class="h5"><br>
On Fri, 2011-08-05 at 22:01 +0200, Markus Mohrhard wrote:<br>
> Hello,<br>
><br>
> this patch should ensure that we write the password algorithm only to<br>
> odf 1.2 and later files.<br>
><br>
> I'm not quite sure how important it is to be 100% standard compliant<br>
> so I don't know if we should include it into 3-4.<br>
<br>
</div></div>Well, I do know that 100% standard compliance *does* matter to some<br>
circle of users, so as long as the fix is a safe fix, I would say we<br>
should put it in.<br>
<br>
I would make one change though. Instead of<br>
<br>
if ( IsOdfVersionGreaterEqual_1_2() )<br>
<br>
we should do<br>
<br>
if (getDefaultVersion() >= SvtSaveOptions::ODFVER_012)<br>
<br>
and drop the additional method you added in your patch.<br>
Conditionalizing for the ODF version 1.2 or above is common enough that<br>
it is done in many other places, and this is how it is done there.<br>
<br>
Other than that, the patch looks good & safe.<br>
<br>
Kohei<br>
<font color="#888888"><br>
--<br>
Kohei Yoshida, LibreOffice hacker, Calc<br>
<<a href="mailto:kohei.yoshida@suse.com">kohei.yoshida@suse.com</a>><br>
<br>
</font></blockquote></div><br>