<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 - UI Font replacement table loads existing rule incorrectly"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=136534">136534</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>UI Font replacement table loads existing rule incorrectly
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0.0.3 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>Keywords</th>
          <td>bisected, regression
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>UI
          </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>caolanm@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=165212" name="attach_165212" title="Correctly loaded existing rule">attachment 165212</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=165212&action=edit" title="Correctly loaded existing rule">[details]</a></span>
Correctly loaded existing rule

Font replacement table loads the “Replace with” part of exising rules to the
“Font” field instead of to the “Replace with” field, which is left empty.
This makes modifying existing rules impossible.


Steps to reproduce:
    1. Go to Options – LibreOffice – Fonts and enable “Apply replacement table”
    2. Set up an arbitrary replacement
    3. Select the new rule in the table

Actual results:
The “Replace with” font is loaded to the”Font” field, “Replace with” is empty

Expected results:
Existing rule is loaded to the “Font” and “Replace with” fields.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: baa84b5b4d287da0f00fc3fbf11f464f267c9202
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Not yet in:
Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: Skia/Raster;
VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Additional Information: 

Bibisected using bibisect-win64-7.1 to:
<a href="https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=1aa9a2ac5341d457bbdc00b987285203d11333f1..b5cb211f80fd87c109633232cf340ac7969c8648">https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=1aa9a2ac5341d457bbdc00b987285203d11333f1..b5cb211f80fd87c109633232cf340ac7969c8648</a> 

which is a kinda huge range of nearly 400 commits.

Restricting it to only to cui/source/options/fontsubs.cxx gives only one
change:
<a href="https://cgit.freedesktop.org/libreoffice/core/log/cui/source/options/fontsubs.cxx?qt=range&q=1aa9a2ac5341d457bbdc00b987285203d11333f1..b5cb211f80fd87c109633232cf340ac7969c8648">https://cgit.freedesktop.org/libreoffice/core/log/cui/source/options/fontsubs.cxx?qt=range&q=1aa9a2ac5341d457bbdc00b987285203d11333f1..b5cb211f80fd87c109633232cf340ac7969c8648</a>


author  Caolán McNamara <<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>>    2020-06-05 16:11:39 +0100
committer       Caolán McNamara <<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>>    2020-06-08 20:21:35
+0200

rework treeview initial toggle button col to be like expander col

Adding CC to: Caolán McNamara</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>