From 9ffe84307f6e74d88d09a1515e3950f77332e52c Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 22 Apr 2010 15:38:53 -0400 Subject: koheiautodecimal: #i111074# When querying max precision, ignore unlimited precision, or use 2 in case all cell's precisions are unlimited. --- sc/source/ui/docshell/docsh8.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/ui/docshell/docsh8.cxx') diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index b761dd75d9df..cb9d625da70c 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -597,7 +597,7 @@ void lcl_GetColumnTypes( ScDocShell& rDocShell, else if ( nDbType == sdbc::DataType::DECIMAL ) { // maximale Feldbreite und Nachkommastellen bestimmen xub_StrLen nLen; - USHORT nPrec; + sal_uInt16 nPrec; nLen = pDoc->GetMaxNumberStringLen( nPrec, nTab, nCol, nFirstDataRow, nLastRow ); // dBaseIII Limit Nachkommastellen: 15 -- cgit