diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-05-07 15:00:04 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-05-07 15:00:04 +0000 |
commit | 7eaddc7cd676baca2e38120b4e18616d4026a309 (patch) | |
tree | 4cd40e687389dfe22295ec79069a3e481da6234b /xmloff | |
parent | 98a89f2805cc07888eb7a7b6735413c5cb227379 (diff) |
INTEGRATION: CWS frmcontrols03 (1.18.52); FILE MERGED
2004/03/02 09:51:21 fs 1.18.52.1: #i24387# proper im/export of a rich text control
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/propertyimport.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx index 274107f38af4..04c6ff9e7718 100644 --- a/xmloff/source/forms/propertyimport.cxx +++ b/xmloff/source/forms/propertyimport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: propertyimport.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: kz $ $Date: 2003-12-11 12:10:50 $ + * last change: $Author: rt $ $Date: 2004-05-07 16:00:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -362,13 +362,13 @@ namespace xmloff ::com::sun::star::util::Time OPropertyImport::implGetTime(double _nValue) { ::com::sun::star::util::Time aTime; - sal_Int32 nIntValue = sal_Int32(_nValue * 8640000); + sal_uInt32 nIntValue = sal_Int32(_nValue * 8640000); nIntValue *= 8640000; - aTime.HundredthSeconds = nIntValue % 100; + aTime.HundredthSeconds = (sal_uInt16)( nIntValue % 100 ); nIntValue /= 100; - aTime.Seconds = nIntValue % 60; + aTime.Seconds = (sal_uInt16)( nIntValue % 60 ); nIntValue /= 60; - aTime.Minutes = nIntValue % 60; + aTime.Minutes = (sal_uInt16)( nIntValue % 60 ); nIntValue /= 60; OSL_ENSURE(nIntValue < 24, "OPropertyImport::implGetTime: more than a day?"); aTime.Hours = (sal_uInt16)nIntValue; |