<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jumbo4444@yahoo.fr" title="Laurent BP <jumbo4444@yahoo.fr>"> <span class="fn">Laurent BP</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - EDITING: Data Validity Cell Range not being applied to multiple selected cells"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=53920">bug 53920</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;">Status</td>
           <td>NEW
           </td>
           <td>ASSIGNED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - EDITING: Data Validity Cell Range not being applied to multiple selected cells"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=53920#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - EDITING: Data Validity Cell Range not being applied to multiple selected cells"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=53920">bug 53920</a>
              from <span class="vcard"><a class="email" href="mailto:jumbo4444@yahoo.fr" title="Laurent BP <jumbo4444@yahoo.fr>"> <span class="fn">Laurent BP</span></a>
</span></b>
        <pre>I tried to debug what is happening at closure time after OK click.

in sc/source/ui/view/cellsh2.cxx:928
 pTabViewShell->SetValidation( aData ); 
should copy ValidationData to all selected cells. 
But in sc/source/ui/view/viewfunc.cxx:1092
function ScViewFunc::ApplySelectionPattern(
creates aFuncMark with
 ScMarkData aFuncMark( rViewData.GetMarkData() );
aFuncMark.bMarked should be true but is set to false if visible tab is not
where selected cells are (in debugger, forcing it to true avoid the bug).

I tried to force to apply tab modification after
sc/source/ui/view/cellsh2.cxx#851
 pTabViewShell->SetTabNo( nTab );
with pTabViewShell->PaintExtras(); but it has no effect.

So I propose to avoid the bug by just switching back tab earlier: at RefButton
shrink box closure. In commit 11560, 
<a href="https://gerrit.libreoffice.org/#/c/11660/">https://gerrit.libreoffice.org/#/c/11660/</a>
I propose to:
- switching back tab in ScTPValidationValue::RefInputDonePostHdl 
- remove unnecessary switch back tab in cellsh2.cxx</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>