summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/edit/edglss.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx
index ee848a206d44..82a11ddbfe9c 100644
--- a/sw/source/core/edit/edglss.cxx
+++ b/sw/source/core/edit/edglss.cxx
@@ -104,16 +104,14 @@ sal_uInt16 SwEditShell::SaveGlossaryDoc( SwTextBlocks& rBlock,
if( !pNd )
pNd = pContentNd;
- pCursor->GetPoint()->nNode = *pNd;
- if( pNd == pContentNd )
- pCursor->GetPoint()->nContent.Assign( pContentNd, 0 );
+ pCursor->GetPoint()->Assign(*pNd);
pCursor->SetMark();
// then until the end of the Node array
- pCursor->GetPoint()->nNode = pMyDoc->GetNodes().GetEndOfContent().GetIndex()-1;
+ pCursor->GetPoint()->Assign(pMyDoc->GetNodes().GetEndOfContent().GetIndex()-1);
pContentNd = pCursor->GetPointContentNode();
if( pContentNd )
- pCursor->GetPoint()->nContent.Assign( pContentNd, pContentNd->Len() );
+ pCursor->GetPoint()->SetContent( pContentNd->Len() );
OUString sBuf;
GetSelectedText( sBuf, ParaBreakType::ToOnlyCR );
@@ -133,10 +131,10 @@ sal_uInt16 SwEditShell::SaveGlossaryDoc( SwTextBlocks& rBlock,
aCpyPam.SetMark();
// then until the end of the nodes array
- aCpyPam.GetPoint()->nNode = pMyDoc->GetNodes().GetEndOfContent().GetIndex()-1;
+ aCpyPam.GetPoint()->Assign(pMyDoc->GetNodes().GetEndOfContent().GetIndex()-1);
pContentNd = aCpyPam.GetPointContentNode();
- aCpyPam.GetPoint()->nContent.Assign(
- pContentNd, pContentNd ? pContentNd->Len() : 0);
+ if(pContentNd)
+ aCpyPam.GetPoint()->SetContent( pContentNd->Len() );
aStt = pGDoc->GetNodes().GetEndOfExtras();
pContentNd = pGDoc->GetNodes().GoNext( &aStt );
@@ -229,17 +227,18 @@ bool SwEditShell::CopySelToDoc( SwDoc& rInsDoc )
// but we want to copy the table and the start node before
// the first cell as well.
// tdf#133982 tables can be nested
+ const SwNode* pNode = &aPaM.Start()->GetNode();
while (SwTableNode const* pTableNode =
- aPaM.Start()->GetNode().StartOfSectionNode()->FindTableNode())
+ pNode->StartOfSectionNode()->FindTableNode())
{
- aPaM.Start()->nNode = *pTableNode;
+ pNode = pTableNode;
}
while (SwSectionNode const* pSectionNode =
- aPaM.Start()->GetNode().StartOfSectionNode()->FindSectionNode())
+ pNode->StartOfSectionNode()->FindSectionNode())
{
- aPaM.Start()->nNode = *pSectionNode;
+ pNode = pSectionNode;
}
- aPaM.Start()->nContent.Assign(nullptr, 0);
+ aPaM.Start()->Assign(*pNode);
}
bRet = GetDoc()->getIDocumentContentOperations().CopyRange( aPaM, aPos, SwCopyFlags::CheckPosInFly)
|| bRet;
e='2019-10-27 19:35:16 +0100'>2019-10-27Add bin/lo-xlate-langEike Rathke 2019-10-01loplugin:stringadd in helpcompiler..ooxNoel Grandin 2019-09-28Resolves: tdf#127786 cache Glibc locale string in LanguageTagImplEike Rathke 2019-09-01Fix '..'Andrea Gelmini 2019-09-01Fix '..'Andrea Gelmini 2019-08-20Related: tdf#127011 add English (Nigeria) [en-NG] 0xA809 to language listEike Rathke 2019-08-01tdf#126282 add English (Sri Lanka) [en-LK] 0xA409 to language listEike Rathke 2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): i18nlangtagStephan Bergmann 2019-07-18It's Classical Armenian, not Classic [xcl-AM]Eike Rathke 2019-06-05Related: tdf#125404 alias cmn-CN to zh-CN, cmn-TW to zh-TWEike Rathke 2019-05-21tdf#42949 Fix IWYU warnings in i18nlangtag/Gabor Kelemen 2019-05-04Resolves: tdf#123948 add English (Zambia) [en-ZM] to language listEike Rathke 2019-05-02Comment stuff and @addregexEike Rathke 2019-05-02Adapt to realityEike Rathke 2019-04-25Re-generate from 3/13/2019 13.0 revisionEike Rathke 2019-04-25Generate .lst.h output with LanguageType(0x....)Eike Rathke 2019-03-18Index is not needed for single getToken callMatteo Casalin 2019-03-09out of line some heavily repeated functionsNoel Grandin 2019-03-08new loplugin constvarsNoel Grandin 2019-02-18Simplify containers iterations in [f-l]*Arkadiy Illarionov 2018-10-20Turn LanguageTag::ScriptType into scoped enumStephan Bergmann 2018-10-18clang-tidy readability-simplify-boolean-exprNoel Grandin 2018-10-09Extend loplugin:redundantinline to catch inline functions w/o external linkageStephan Bergmann 2018-08-29new loplugin:oustringbufferNoel Grandin