<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FORMATTING: Calc crashes on setting borders to all cells on more than one sheet simultaneously"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133629">bug 133629</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;">CC</td>
           <td>
                
           </td>
           <td>noelgrandin@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FORMATTING: Calc crashes on setting borders to all cells on more than one sheet simultaneously"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133629#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FORMATTING: Calc crashes on setting borders to all cells on more than one sheet simultaneously"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133629">bug 133629</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>Noel: thought you might be interested in this one.
I see several changes possible:
1) 
Simply replace
for (SCCOL i=nStartCol; i<=nEndCol; i++)
->
for (SCCOL i=nStartCol; i<nEndCol; i++)

2) Like in ScTable::ApplyStyleArea
  2741  // If we would like set all columns to specific style, then change only
default style for not existing columns <== It's the case here
   2742 nEndCol = aCol.size() - 1;
   2743 for (SCCOL i = nStartCol; i <= nEndCol; i++)

3)
nEndCol = ClampToAllocatedColumns(nEndCol);

4) other?

Any thoughts here?</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>