<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 - Conditional formatting: wrong reference when copying the table"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126327">126327</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Conditional formatting: wrong reference when copying the table
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.2.5.2 release
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux (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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mh76d@web.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Wenn ich eine Tabelle mit einer bedingten Formatierung kopiere, wird die
Referenz auf eine andere Tabelle nicht richtig gesetzt: das Dollar-Zeichen wird
ignoriert.

Steps to Reproduce:
1. Create a new spreadsheet document
2. Create a new sheet 
3. In Sheet2 set A1 value '2'
4. In Sheet1 set A1 value 'Test'
5. Format->Conditional->Condition
6. Formula is "$Sheet2.$A$1 = 2"
7. Click "Move or copy sheet"
8. Choose "Copy" and "Insert before Sheet1" (not - move to end position -)


Actual Results:
In the new Sheet (Sheet1_2) the formula from the condition references to
sheet1, not sheet2 as expected

The formula is "$Sheet1.$A$1 = 2"


Expected Results:
The formula in the new sheet should be "$Sheet2.$A$1 = 2" as in Sheet1, because
of the $-sign.


Reproducible: Always


User Profile Reset: No



Additional Info:
When you choose copy - move to end position - it works as expectedVersion: 

6.2.5.2
Build ID: 6.2.5-1
CPU threads: 4; OS: Linux 5.1; UI render: default; VCL: gtk3; 
Locale: en-US (C); UI-Language: en-US
Calc: threaded

Arch Linux</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>