sc/source/ui/docshell/dbdocimp.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 2584109a7929cc44e4dc5a1e57a98a10151973df Author: Andreas Heinisch <[email protected]> AuthorDate: Thu May 8 19:37:24 2025 +0200 Commit: Andreas Heinisch <[email protected]> CommitDate: Fri May 9 09:50:20 2025 +0200 tdf#117436 - Adjust row height to accommodate potential multiline cells Using drag and drop to copy a table from Base to Calc adapts the row height of the imported content in order to accomodate potential multiline cells in the Base table. Change-Id: Ifadf3f9034a5440385cea7b35ce4e28f206b744d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185066 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <[email protected]> diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index 70616d9382b5..670433f28853 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -560,6 +560,10 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, aNewMark, InsertDeleteFlags::CONTENTS ); } + + // tdf#117436 - adjust row height to accommodate potential multiline cells + rDoc.GetDocumentShell()->AdjustRowHeight(rParam.nRow1, nEndRow, nTab); + // update database range pDBData->SetImportParam( rParam ); pDBData->SetHeader( true );
