<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 - EDITING Inserting column before autofiltered column empties autofilter"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=141946">141946</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EDITING Inserting column before autofiltered column empties autofilter
          </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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>libreoffice@nisz.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>tundeth@gmail.com, varga.balazs3@nisz.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>103512
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=171473" name="attach_171473" title="Screenshot of the original document in Calc after filtering column B">attachment 171473</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=171473&action=edit" title="Screenshot of the original document in Calc after filtering column B">[details]</a></span>
Screenshot of the original document in Calc after filtering column B

This is similar to <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - EDITING AUTOFILTER: Autofilter settings stay with the column number when deleting columns"
   href="show_bug.cgi?id=48025">bug #48025</a>
When inserting a new column before an autofiltered one the new one gets marked
as being filtered and all autofilter dropdown becomes empty.

Steps to reproduce:
    1. Open <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=70414" name="attach_70414" title="File to test / reproduce the bug.">attachment #70414</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=70414&action=edit" title="File to test / reproduce the bug.">[details]</a></span>
    2. In the autofilter of Column B filter out the value 1
    3. Select a cell in column B such as B10
    4. Sheet – Insert Colums - Insert Before 
(interestingly Insert After does not cause a similar error)

Actual results:
Column B is now an empty column with autofilter. The blue marking in cell B1
indicates column B is filtered. The autofilter dropdowns are empty.

Expected results:
Cell C1 should be marked as filtered, autofilter dropdowns should not be empty.

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: eeb2854e085fdd9f7a38d6e952a8aedf43e90323
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] AutoFilter-related bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=103512">Bug 103512</a>] [META] AutoFilter-related bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

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

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