summaryrefslogtreecommitdiff
path: root/sw/source/core/text/txtfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-02 09:14:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-02 12:26:24 +0100
commit5962dbf15d99b54d33f7e6589a23b8bca4359168 (patch)
tree44129e9452ab5004def9257aecfbc4c41e1c566e /sw/source/core/text/txtfrm.cxx
parent4e9aa386556f49358a1cef5c5f6b9b26d2e9e1b8 (diff)
speedup sw build a little
from 11m46 to 11m21 Used ClangBuildAnalyzer to find headers that took a long time to parse (in total, across all modules). (*) moved the boost stuff out of sw/inc/docary into a new header. (*) make sw/inc/ndtxt no longer include doc.hxx Change-Id: Ia1d4ebddb4ddd4ec4ffbc011f4a5e24a42b46d3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89808 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/txtfrm.cxx')
-rw-r--r--sw/source/core/text/txtfrm.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 874dcc75db99..8b6051b8da73 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -1386,18 +1386,18 @@ bool SwTextFrame::IsHiddenNow() const
{
// see also SwpHints::CalcHiddenParaField()
const SwFormatField& rField = pHint->GetFormatField();
- int nCurWeight = pNode->FieldCanHideParaWeight(rField.GetField()->GetTyp()->Which());
+ int nCurWeight = pNode->GetDoc()->FieldCanHideParaWeight(rField.GetField()->GetTyp()->Which());
if (nCurWeight > nNewResultWeight)
{
nNewResultWeight = nCurWeight;
- bHiddenParaField = pNode->FieldHidesPara(*rField.GetField());
+ bHiddenParaField = pNode->GetDoc()->FieldHidesPara(*rField.GetField());
}
else if (nCurWeight == nNewResultWeight && bHiddenParaField)
{
// Currently, for both supported hiding types (HiddenPara, Database), "Don't hide"
// takes precedence - i.e., if there's a "Don't hide" field of that weight, we only
// care about fields of higher weight.
- bHiddenParaField = pNode->FieldHidesPara(*rField.GetField());
+ bHiddenParaField = pNode->GetDoc()->FieldHidesPara(*rField.GetField());
}
}
}