<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 - [FILEOPEN] Importing a xlsx file with AutoFilter leaves ghost range definition"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138704">138704</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[FILEOPEN] Importing a xlsx file with AutoFilter leaves ghost range definition
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.7.2 release
          </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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>iavs.leroy@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Original AutoFilter range remains valid, although new AutoFilter range is set.
Need to copy and paste the data to a new spreadsheet to avoid the issue.

Steps to Reproduce:
1. Open a xlsx file that includes autofilters (in my case, answers from a MS
Forms in Calc)
2. Hide AutoFilter
3. Add some columns to the right (D:F in the sample file)
4. Add AutoFilter
5. Apply AutoFilter
6. Hide AutoFilter

Actual Results:
Steps 4, 5 and 6 do not take in account the new columns if done while cursor is
in the original columns.
Steps 4, 5 and 6 works if done while cursor is in the new columns.

Expected Results:
When hidding AutoFilter range must be automatically reseted.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 6.4.7.2 (x86)
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default;
VCL: win; 
Locale: es-MX (es_MX); UI-Language: en-US
Calc: threaded</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>