[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Review Request: KSpread: Distinguish between void parameter and
From: "Marijn Kruisselbrink" <m.kruisselbrink () student ! tue ! nl>
Date: 2010-05-16 19:13:00
Message-ID: 20100516191300.2463.86688 () localhost
[Download RAW message or body]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3993/#review5683
-----------------------------------------------------------
Ship it!
Looks good to me.
- Marijn
On 2010-05-16 14:55:58, Johannes Simon wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3993/
> -----------------------------------------------------------
>
> (Updated 2010-05-16 14:55:58)
>
>
> Review request for KOffice.
>
>
> Summary
> -------
>
> A patch to distinguish between a void/null parameter ("nothing", as the third \
> argument in IF(true;1;)) and an empty value.
> The change is designed to be backwards-compatible as it only has an effect on code \
> that explicitly checks if the value is the new type 'null'.
> Reason: A null value is also an empty value, but not the other way around.
>
> This is to counteract the counter-intuitive behaviour of =IF(true;A1;B1) which will \
> evaluate to "0" if B1 is empty. Using this to concatenate strings will result in \
> odd extra characters.
> Rational behind this: OpenFormula defines IF(true;XZY;) to be "0". That behaviour \
> is retained. If an empty cell is explicitly used, however, the result is empty just \
> like one would expect, which does not contradict with the OpenFormula \
> specification. It's more intuitive and, last but not least, the way OpenOffice \
> handles it.
>
> Diffs
> -----
>
> trunk/koffice/kspread/Formula.cpp 1124538
> trunk/koffice/kspread/Value.h 1124538
> trunk/koffice/kspread/functions/logic.cpp 1124538
> trunk/koffice/kspread/tests/TestLogicFunctions.h 1124538
> trunk/koffice/kspread/tests/TestLogicFunctions.cpp 1124538
>
> Diff: http://reviewboard.kde.org/r/3993/diff
>
>
> Testing
> -------
>
> No regressions in unit tests. Added new testcase.
>
>
> Thanks,
>
> Johannes
>
>
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic