diff options
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 3ef609e2f288..8b077f11360d 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -818,12 +818,11 @@ bool Converter::convertDuration(double& rfTime, { if ( nDays ) nHours += nDays * 24; // add the days to the hours part - double fTempTime = 0.0; double fHour = nHours; double fMin = nMins; double fSec = nSecs; double fFraction = sDoubleStr.toDouble(); - fTempTime = fHour / 24; + double fTempTime = fHour / 24; fTempTime += fMin / (24 * 60); fTempTime += fSec / (24 * 60 * 60); fTempTime += fFraction / (24 * 60 * 60); |