Hi Niklas, On Thursday, 2008-10-30 09:42:30 +0100, Niklas Nebel wrote:
>> If I select 2 or more equal dates, and try to fill, the date still gets >> incremented. This is not the case with ordinary numbers. > > Two numbers lead to "linear" fill, no special handling for the "equal" > case there. For dates, in ScTable::FillAuto() FillAnalyse() is called that for this case correctly determines nInc to be 0, but sets eFillCmd to FILL_SIMPLE. In the following (eFillCmd == FILL_SIMPLE) path the nInc value is not used, but nDelta set to 1 instead. For numbers, FillAnalyse() determines nInc=0 as well, but sets eFillCmd to FILL_LINEAR that then acts correctly in the else path. Looks like FillAnalyse() simply fails to set the FillCmd to FILL_DATE for equal dates, and FillDateCmd to FILL_DAY. Only by review, untested for possible side effects. Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. SunSign 0x87F8D412 : 2F58 5236 DB02 F335 8304 7D6C 65C9 F9B5 87F8 D412 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't send personal mail to the [EMAIL PROTECTED] account, which I use for mailing lists only and don't read from outside Sun. Use [EMAIL PROTECTED] Thanks.
pgpQKVHs7FGr1.pgp
Description: PGP signature
