summaryrefslogtreecommitdiff
path: root/sw/source/core/text/atrstck.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/text/atrstck.cxx')
-rw-r--r--sw/source/core/text/atrstck.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/text/atrstck.cxx b/sw/source/core/text/atrstck.cxx
index 5de97e21c9c3..cfe91f8532b3 100644
--- a/sw/source/core/text/atrstck.cxx
+++ b/sw/source/core/text/atrstck.cxx
@@ -226,7 +226,7 @@ static bool lcl_ChgHyperLinkColor( const SwTxtAttr& rAttr,
// 1. case:
// We do not want to show visited links:
// (printing, pdf export, page preview)
- //
+
if ( pShell->GetOut()->GetOutDevType() == OUTDEV_PRINTER ||
pShell->GetViewOptions()->IsPDFExport() ||
pShell->GetViewOptions()->IsPagePreview() )
@@ -251,11 +251,10 @@ static bool lcl_ChgHyperLinkColor( const SwTxtAttr& rAttr,
return false;
}
- //
// 2. case:
// We do not want to apply the color set in the hyperlink
// attribute, instead we take the colors from the view options:
- //
+
if ( pShell->GetWin() &&
(
(((SwTxtINetFmt&)rAttr).IsVisited() && SwViewOption::IsVisitedLinks()) ||