| commit | 4bdf28b404f90236d93ce207671f755a71f28496 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Fri Jan 14 12:50:15 2022 +0000 |
| committer | Caolán McNamara <caolanm@redhat.com> | Fri Jan 14 15:45:19 2022 +0100 |
| tree | 0c549dadda1b04792881d569e082ed216672566b | |
| parent | adc7fb85b9f525dfee8619c030ec57b2ba71ea37 [diff] |
tdf#136481 show the focus rect for the case nothing is yet selected but the cursor is at pos 0 Change-Id: I7c94480bffdced23fe89d4e3ba0e729742247130 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128414 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index b03c094..543a60a 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx
@@ -1481,12 +1481,16 @@ void ScGridWindow::LaunchDataSelectMenu( SCCOL nCol, SCROW nRow ) { rFilterBox.grab_focus(); if (rFilterBox.n_children()) { if (nSelPos != -1) rFilterBox.set_cursor(nSelPos); else rFilterBox.set_cursor(0); } // Select only after GrabFocus, so that the focus rectangle gets correct if (nSelPos != -1) { rFilterBox.set_cursor(nSelPos); rFilterBox.select(nSelPos); } else rFilterBox.unselect_all();