summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-05-27 21:07:28 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-05-28 21:45:50 +0200
commit3dd0105d1c237fd5af619d6153802b3549678c80 (patch)
tree208518acc23e81039acd224dfee3f6a2f1e624a8 /sc
parentaa81a086bd3dcd7d6b830951619f310bd0aff30c (diff)
DBase: synchronize DB types known on Calc with those known on Base
by adding 0x31, VisualFoxProAuto on array of valid marks in lcl_MayBeDBase See https://opengrok.libreoffice.org/xref/core/connectivity/source/inc/dbase/DTable.hxx#40 and https://opengrok.libreoffice.org/xref/core/include/connectivity/dbtools.hxx#823 Yes, it should be great to have only 1 enum Change-Id: Ic3fb74c838aab5e744cbe1d70ad8ca4ce2c00b8d Reviewed-on: https://gerrit.libreoffice.org/54894 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 881c5f9834a3..251fda4e1549 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -191,7 +191,7 @@ static bool lcl_MayBeDBase( SvStream& rStream )
// Look for dbf marker, see connectivity/source/inc/dbase/DTable.hxx
// DBFType for values.
const sal_uInt8 nValidMarks[] = {
- 0x03, 0x04, 0x05, 0x30, 0x43, 0xB3, 0x83, 0x8b, 0x8e, 0xf5 };
+ 0x03, 0x04, 0x05, 0x30, 0x31, 0x43, 0xB3, 0x83, 0x8b, 0x8e, 0xf5 };
sal_uInt8 nMark;
rStream.Seek(STREAM_SEEK_TO_BEGIN);
rStream.ReadUChar( nMark );