summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-24 10:30:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-24 15:08:20 +0200
commit4948b14eedb79a1408e20ab477929fe062d13c27 (patch)
treea56d5e6424f8d0febe702d3a94d0a35428298250 /svtools
parent60259499f4cf2785dd12cfb2f4e678e5fe6e0fd6 (diff)
don't grab focus if Field Properties panel is actively being resized
by split pane drag resizing Change-Id: I69ae50400e74ed292b4a8110a4767169e9353239 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99359 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index a5c13f067400..996b68b4b194 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -1026,7 +1026,6 @@ namespace svt
CellModified();
}
-
void EditBrowseBox::ColumnResized( sal_uInt16 )
{
if (IsEditing())
@@ -1034,11 +1033,14 @@ namespace svt
tools::Rectangle aRect( GetCellRect(nEditRow, nEditCol, false));
CellControllerRef aControllerRef = Controller();
ResizeController(aControllerRef, aRect);
+ // don't grab focus if Field Properties panel is being
+ // resized by split pane drag resizing
+ if (Application::IsUICaptured())
+ return;
Controller()->GetWindow().GrabFocus();
}
}
-
sal_uInt16 EditBrowseBox::AppendColumn(const OUString& rName, sal_uInt16 nWidth, sal_uInt16 nPos, sal_uInt16 nId)
{
if (nId == BROWSER_INVALIDID)