diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-11-30 07:49:02 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-12-17 14:38:17 +0100 |
commit | d8ede5d2f592084f76cc8888d42c3f1f5875e894 (patch) | |
tree | 545138744bb486f0acfafd63962fe3f6e0e4ebe4 | |
parent | dafb51e234badf254a78a54ce804647b30c5d421 (diff) |
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 <serval2412@yahoo.fr>
(cherry picked from commit 44f1ed1928d4d32b1a1962f413df69e2ae851789)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107014
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; |