From d8ede5d2f592084f76cc8888d42c3f1f5875e894 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 30 Nov 2020 07:49:02 +0100 Subject: Related tdf#54021: Fields in tablecontrols of a form could not be copied See https://bugs.documentfoundation.org/show_bug.cgi?id=54021#c42 for more details. Of course there's still the main pb to fix, moving columns Change-Id: I2308efa47cbb9b80f278cf2644bb9cf24ab831e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106849 Reviewed-by: Julien Nabet (cherry picked from commit 44f1ed1928d4d32b1a1962f413df69e2ae851789) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107014 Tested-by: Jenkins Reviewed-by: Christian Lohmaier --- dbaccess/source/ui/browser/sbagrid.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 41a30c9df178..f5c909600f54 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -1046,6 +1046,7 @@ void SbaGridControl::DoColumnDrag(sal_uInt16 nColumnPos) { Reference< XPropertySet > xDataSource = getDataSource(); OSL_ENSURE(xDataSource.is(), "SbaGridControl::DoColumnDrag : invalid data source !"); + ::dbtools::ensureRowSetConnection(Reference< XRowSet >(getDataSource(),UNO_QUERY), getContext(), nullptr); Reference< XPropertySet > xAffectedCol; Reference< XPropertySet > xAffectedField; -- cgit