[Bug 53920] EDITING: Data Validity Cell Range not being applied to multiple selected cells
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Sep 26 23:32:04 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=53920
Laurent BP <jumbo4444 at yahoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #13 from Laurent BP <jumbo4444 at yahoo.fr> ---
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,
https://gerrit.libreoffice.org/#/c/11660/
I propose to:
- switching back tab in ScTPValidationValue::RefInputDonePostHdl
- remove unnecessary switch back tab in cellsh2.cxx
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140927/b59c6b37/attachment.html>
More information about the LibreOffice
mailing list