diff options
author | Oliver Specht <os@openoffice.org> | 2000-10-12 05:51:48 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2000-10-12 05:51:48 +0000 |
commit | f7386d02b1112eec01efd95216d7bb9d01da3519 (patch) | |
tree | 29a34d3124f3f9bef2256afdf24e8a3d5b2e6e9f /sw | |
parent | a6b4b91fbc11da0bf09df648eb52dd5fc1aa8528 (diff) |
#79380# IllegalArgument exception is now thrown if one tries to switch on relative width using the property SizeRelative;
#79391# Assertion removed
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 2fec6902a859..574e2c926d4c 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unotbl.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: os $ $Date: 2000-09-22 09:33:46 $ + * last change: $Author: os $ $Date: 2000-10-12 06:51:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -317,7 +317,11 @@ void lcl_SetSpecialProperty(SwFrmFmt* pFmt, const SfxItemPropertyMap* pMap, cons if(!bPercent) aSz.SetWidthPercent(0); else - DBG_ERROR("relative Breite kann nicht per sal_Bool eingeschaltet werden"); + { + IllegalArgumentException aExcept; + aExcept.Message = C2U("relative width cannot be switched on with this property"); + throw aExcept; + } } pFmt->GetDoc()->SetAttr(aSz, *pFmt); @@ -2830,9 +2834,6 @@ void SwXTextTable::autoFormat(const OUString& aName) throw( IllegalArgumentExcep { String sAutoFmtName(aName); - - DBG_ERROR("AutoFormat: Dafuer sollte es eine autom. Aktualisierung geben!"); - SwTableAutoFmtTbl aAutoFmtTbl; aAutoFmtTbl.Load(); for( sal_uInt16 i = aAutoFmtTbl.Count(); i; ) |