summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objcont.cxx
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2008-12-01 16:41:51 +0000
committerRelease Engineers <releng@openoffice.org>2008-12-01 16:41:51 +0000
commit0db5af172a377cc7c081c76d68bdbcbdb46515fb (patch)
tree6ef83c8ff465489b7aa7c995e4570429eb9ec4d2 /sfx2/source/doc/objcont.cxx
parent66faa30852ccf28403868557db1f8a4cc415b9cc (diff)
CWS-TOOLING: integrate CWS mav42_DEV300
Diffstat (limited to 'sfx2/source/doc/objcont.cxx')
-rw-r--r--sfx2/source/doc/objcont.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 836c11cfc6d7..a164f9cdf384 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -514,9 +514,15 @@ void SfxObjectShell::UpdateTime_Impl(
}
pImp->nTime = aNow;
- i_xDocProps->setEditingDuration(
- aOldTime.GetHour()*3600+aOldTime.GetMin()*60+aOldTime.GetSec());
- i_xDocProps->setEditingCycles(i_xDocProps->getEditingCycles() + 1);
+ try {
+ i_xDocProps->setEditingDuration(
+ aOldTime.GetHour()*3600+aOldTime.GetMin()*60+aOldTime.GetSec());
+ i_xDocProps->setEditingCycles(i_xDocProps->getEditingCycles() + 1);
+ }
+ catch (lang::IllegalArgumentException &)
+ {
+ // ignore overflow
+ }
}
//--------------------------------------------------------------------