<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:spinnau@gmail.com" title="spinnau@gmail.com">spinnau@gmail.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Error on creating script provider for Python script from location=document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122545">bug 122545</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Keywords</td>
           <td>
                
           </td>
           <td>bisected
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Error on creating script provider for Python script from location=document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122545#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Error on creating script provider for Python script from location=document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122545">bug 122545</a>
              from <span class="vcard"><a class="email" href="mailto:spinnau@gmail.com" title="spinnau@gmail.com">spinnau@gmail.com</a>
</span></b>
        <pre>The error is caused by commit
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=693953dd4699887bd3f5bca2c3582b5fae1d6992">https://cgit.freedesktop.org/libreoffice/core/commit/?id=693953dd4699887bd3f5bca2c3582b5fae1d6992</a>


I think there's an indirect connection between this commit and the error. Maybe
the evaluation of the cell and the calculation of the row height is done before
the Python scripts inside the document actually are loaded:

* The test document works fine and opens without any error if the row height
for cell "B3" (with the user-defined function calling the Python code) is
changed from optimal to a fixed value.

* It also works and opens without error if the script is changed to
location=user and the appropriate Python file is copied to the user profile
directory.</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>