[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Sun Nov 3 13:53:52 CET 2013
sc/source/ui/dbgui/asciiopt.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 75673b2b441d86cf92d2fd515285a5553cfceb4a
Author: Eike Rathke <erack at redhat.com>
Date: Sun Nov 3 13:51:28 2013 +0100
catch aFieldSeps.isEmpty() in ScAsciiOptions::GetWeightedFieldSep()
Change-Id: I72dea73752cd793d8f4992dfe631270412155a16
diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx
index b2ea0c8..d52d4aa 100644
--- a/sc/source/ui/dbgui/asciiopt.cxx
+++ b/sc/source/ui/dbgui/asciiopt.cxx
@@ -364,7 +364,12 @@ sal_Unicode ScAsciiOptions::GetWeightedFieldSep( const OUString & rFieldSeps, bo
{
bool bMergeFieldSeps = false;
OUString aFieldSeps( bDecodeNumbers ? lcl_decodeSepString( rFieldSeps, bMergeFieldSeps) : rFieldSeps);
- if (aFieldSeps.getLength() <= 1)
+ if (aFieldSeps.isEmpty())
+ {
+ SAL_WARN( "sc.ui", "ScAsciiOptions::GetWeightedFieldSep - no separator at all, using ',' comma");
+ return ',';
+ }
+ else if (aFieldSeps.getLength() == 1)
return aFieldSeps[0];
else
{
More information about the Libreoffice-commits
mailing list