summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-10-25 13:38:46 +0000
committerOliver Specht <os@openoffice.org>2000-10-25 13:38:46 +0000
commiteb85f12ab175b04e242b464cfff216b8b6035f60 (patch)
tree95e5366de60eca9510865b6bd50e4ac4db23bbda
parentd280a556ebd4eb174781e06aeb62f9a783ae502a (diff)
ChgSection: additional parameter to prevent update of file links
-rw-r--r--sw/source/core/unocore/unosect.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index e063b1d4aeab..a0917fdd96e8 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unosect.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: os $ $Date: 2000-10-09 10:37:01 $
+ * last change: $Author: os $ $Date: 2000-10-25 14:38:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -566,13 +566,14 @@ void SwXTextSection::setPropertyValue(
}
if(pFmt)
{
- const SwSectionFmts& rFmts = pFmt->GetDoc()->GetSections();
- UnoActionContext aContext(pFmt->GetDoc());
+ SwDoc* pDoc = pFmt->GetDoc();
+ const SwSectionFmts& rFmts = pDoc->GetSections();
+ UnoActionContext aContext(pDoc);
for( sal_uInt16 i = 0; i < rFmts.Count(); i++ )
{
if(rFmts[i]->GetSection()->GetName() == pSect->GetName())
{
- pFmt->GetDoc()->ChgSection( i, aSection, pNewAttrSet);
+ pDoc->ChgSection( i, aSection, pNewAttrSet, pDoc->IsInReading());
break;
}
}