[Libreoffice-bugs] [Bug 142727] Colorize Cells

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 21 19:58:59 UTC 2021


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

Andreas Heinisch <andreas.heinisch at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #5 from Andreas Heinisch <andreas.heinisch at yahoo.de> ---
So I checked for the exact reason of this bug. In Bug 130476, we changed the
behaviour of the hex literals. So in &H00FF00 preceeding zeros are ignored and 
the resulting number is converted to an int, which leads to -256, which is
obviously not a color.

However, if you cast the literal to a long by adding & at the end (&H00FF00&),
the value is preserved as long and the cell color gets the correct value.

So imho not a bug.

You can just change your lines from:
Tabelle.getCellbyPosition(6,l).CellBackcolor = &H00FF00
to:
Tabelle.getCellbyPosition(6,l).CellBackcolor = &H00FF00&

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210621/bc5c1207/attachment.htm>


More information about the Libreoffice-bugs mailing list