From 565b619d57a3b98b0826c4b49dee6606f9ae70e0 Mon Sep 17 00:00:00 2001 From: Gabriel Masei Date: Tue, 9 Apr 2024 13:07:18 +0300 Subject: 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 Tested-by: Jenkins --- sc/source/ui/docshell/docsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/ui/docshell/docsh.cxx') diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 4b8e5f041c8d..7ef50cc7a8d3 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -1354,7 +1354,7 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if ( const SfxStringItem* pOptionsItem = rMedium.GetItemSet().GetItemIfSet( SID_FILE_FILTEROPTIONS ) ) { - aOptions.ReadFromString( pOptionsItem->GetValue() ); + aOptions.ReadFromString( pOptionsItem->GetValue(), rMedium.GetInStream() ); bOptInit = true; } -- cgit