summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objcont.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-25 08:46:30 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-25 08:46:30 +0000
commit6e4138957c21e7c4a0ae8efc679bc61d6c421d5e (patch)
treea5b1c2cad028b418bfa784e2cd35ab7327c720ad /sfx2/source/doc/objcont.cxx
parent4ef4e62d06a9d064240218381bdcf4c8c92eb863 (diff)
INTEGRATION: CWS late30bf01 (1.75.108); FILE MERGED
2008/07/16 15:35:17 mba 1.75.108.1: #158224#: wrong code that inadverntly has set TemplateDate was fixed; as a side effect now TemplateDate was never set; now adding correct way to do that
Diffstat (limited to 'sfx2/source/doc/objcont.cxx')
-rw-r--r--sfx2/source/doc/objcont.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 34dc3a72bc..18d6ebbbc3 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: objcont.cxx,v $
- * $Revision: 1.75 $
+ * $Revision: 1.76 $
*
* This file is part of OpenOffice.org.
*
@@ -1465,6 +1465,13 @@ void SfxObjectShell::ResetFromTemplate( const String& rTemplateName, const Strin
INetURLObject aObj( rFileName );
xDocProps->setTemplateURL( aObj.GetMainURL(INetURLObject::DECODE_TO_IURI) );
xDocProps->setTemplateName( rTemplateName );
+
+ ::DateTime now;
+ xDocProps->setTemplateDate( util::DateTime(
+ now.Get100Sec(), now.GetSec(), now.GetMin(),
+ now.GetHour(), now.GetDay(), now.GetMonth(),
+ now.GetYear() ) );
+
SetQueryLoadTemplate( sal_True );
}
}