diff options
author | Gabriel Masei <gabriel.masei@1and1.ro> | 2024-04-09 13:07:18 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-10-09 14:49:11 +0200 |
commit | 565b619d57a3b98b0826c4b49dee6606f9ae70e0 (patch) | |
tree | c2fa077a576ce94a2fa5131c19c84bee84faa21d /sc/source/ui/view/cellsh2.cxx | |
parent | 2f1dcf01d713f786ed1bfdc2ba3b6c9e06fb8ecf (diff) |
tdf#160582 Preserve settings saving in csv import dialog
Also, improve detection algorithm by replacing the limit
of 20 lines with a time limit of 500ms.
Change-Id: Iac519b6ebe675b91ce84b900646d9d320ea9ddc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165905
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/view/cellsh2.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx index 0323ca8c219f..bb7c4cf831b3 100644 --- a/sc/source/ui/view/cellsh2.cxx +++ b/sc/source/ui/view/cellsh2.cxx @@ -1040,6 +1040,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ScImportExport::SetNoEndianSwap( aStream ); aExport.ExportStream( aStream, OUString(), SotClipboardFormatId::STRING ); + aStream.Seek(0); ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create(); ScopedVclPtr<AbstractScImportAsciiDlg> pDlg(pFact->CreateScImportAsciiDlg( pTabViewShell->GetFrameWeld(), OUString(), &aStream, SC_TEXTTOCOLUMNS)); |