summaryrefslogtreecommitdiff
path: root/tools/source/rc
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-03-17 08:36:26 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-04-18 21:34:46 +0200
commit9830fd36dbdb72c79703b0c61efc027fba793c5a (patch)
tree2e9d698e6ca109dc6627adb5c84aa2b635bcfe92 /tools/source/rc
parent5aaaf0694b6e3213685563fc3bc90d19b10f5c75 (diff)
date/time IDL datatypes incompatible change
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
Diffstat (limited to 'tools/source/rc')
-rw-r--r--tools/source/rc/rc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/source/rc/rc.cxx b/tools/source/rc/rc.cxx
index 87ec7667d4eb..7ebdae058461 100644
--- a/tools/source/rc/rc.cxx
+++ b/tools/source/rc/rc.cxx
@@ -54,7 +54,10 @@ Time::Time( const ResId& rResId )
if ( 0x04 & nObjMask )
SetSec( (sal_uInt16)pResMgr->ReadShort() );
if ( 0x08 & nObjMask )
- Set100Sec( (sal_uInt16)pResMgr->ReadShort() );
+ // TODO: when we change the place that writes this binary resource format to match:
+ // SetNanoSec( pResMgr->ReadLong() );
+ // In the meantime:
+ SetNanoSec( pResMgr->ReadShort() * ::Time::nanoPerCenti );
}
Date::Date( const ResId& rResId ) : nDate(0)