summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index cdab7496cf8c..9939d0237cd1 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -1246,10 +1246,11 @@ void SwTaggedPDFHelper::BeginBlockStructureElements()
// Heading: H1 - H6
- if (pTextNd->IsOutline()
+ if (int nRealLevel = pTextNd->GetAttrOutlineLevel() - 1;
+ nRealLevel >= 0
+ && !pTextNd->IsInRedlines()
&& sw::IsParaPropsNode(*pFrame->getRootFrame(), *pTextNd))
{
- int nRealLevel = pTextNd->GetAttrOutlineLevel()-1;
switch(nRealLevel)
{
case 0 :