<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - XTextTableCursor::setPropertyValue("BackColor", x) sets paragraph background color, not cell background"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129841">129841</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>XTextTableCursor::setPropertyValue("BackColor", x) sets paragraph background color, not cell background
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Inherited From OOo
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mikekaganski@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In a text document insert a table; select several cells in it; run the
following BASIC code:

<span class="quote">> Sub ColorizeTable1
>   ThisComponent.getCurrentSelection().BackColor = &H00FF0000
> End Sub</span >

Expected result is the cells having red background. Actual result is cells'
paragraphs get red background, which makes cells have white spacing.

Compare to

<span class="quote">> Sub ColorizeTable2
>   ThisComponent.getTextTables().getByIndex(0).getCellRangeByName("A1:A1").BackColor = &H00FF0000
> End Sub</span >

which correctly does the job.

Both SwXTextTableCursor::setPropertyValue and SwXCellRange::setPropertyValue do
the same thing: they check for FN_UNO_TABLE_CELL_BACKGROUND to apply the value
to the cells [1]. For SwXCellRange, property name "BackColor" correctly maps to
that value. But in case of SwXTextTableCursor, neither "BackColor", nor any
other name maps to FN_UNO_TABLE_CELL_BACKGROUND, making it impossible to apply
cell color using text table cursor.

The same for getPropertyValue.

Tested in Version: 6.4.0.1 (x64)
Build ID: 1b6477b31f0334bd8620a96f0aeeb449b587be9f
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

and in OpenOffice.org 2.2.0

but not in OpenOffice.org 1.0.3

Regression after
<a href="https://git.libreoffice.org/core/+/eba784710e92597282a2284b56dce3a45ac38776">https://git.libreoffice.org/core/+/eba784710e92597282a2284b56dce3a45ac38776</a>

[1]
<a href="https://opengrok.libreoffice.org/xref/core/sw/source/core/unocore/unotbl.cxx?r=24314773">https://opengrok.libreoffice.org/xref/core/sw/source/core/unocore/unotbl.cxx?r=24314773</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>