https://bugs.documentfoundation.org/show_bug.cgi?id=119248

            Bug ID: 119248
           Summary: Status bar displays "wrong" sum when colored negative
                    cell format used
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: easyHack, skillCpp
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

If current cell is formatted to only show negatives using color, without minus
sign, then the format is used to display status bar functions (sum, average,
...), but does not use colors, which is confusing.

Steps:

1. Put -1 to A1, -2 to A2
2. Format A2 to use "0;[RED]0" format string.

Now if you select A2, status bar would show sum as 2; if you select A2 and A1
*starting from A2* (so that thick border marks A2), sum shown as 3 (but if you
select them starting from A1, sum is shown a -3).

The problem is that color information is discarded in
ScTabViewShell::GetFunction; if we could store the color in the resulting
string somehow, then we could use it in SvxPosSizeStatusBarControl::Paint; in
that case, we would still need to use undecorated string in
SvxPosSizeStatusBarControl::StateChanged when setting item text used in
tooltips.

Nominating as easy hack; Eike: could you please also look at it if this is
reasonable?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to