Kaydet (Commit) 9b14d2ca authored tarafından Eike Rathke's avatar Eike Rathke

Number scanner: accept fractional seconds in ISO 8601 also for ',' comma

... if comma is the group separator (or some other separator).
Strictly only if 'T' separator was encountered.

Change-Id: I4df55235a6a416f0719752dfcde659d846ac208e
üst 21dde7a0
......@@ -2353,6 +2353,14 @@ bool ImpSvNumberInputScan::ScanMidString( const OUString& rString,
return MatchedReturn();
}
nDecPos = 2; // . in mid string
// If this is exactly an ISO 8601 fractional seconds separator, bail
// out early to not get confused by later checks for group separator or
// other.
if (bIso8601Tsep && nPos == rString.getLength() &&
eScannedType == css::util::NumberFormat::DATETIME && (rString == "." || rString == ","))
return true;
SkipBlanks(rString, nPos);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment