summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-01-30 07:53:52 +0000
committerNiklas Nebel <nn@openoffice.org>2002-01-30 07:53:52 +0000
commit3c5b22fdb1ff950ace7588cc4a2575649f23c104 (patch)
treedc5d0c3d5917faf37ee8987b18b0f501dbfffacf /sc/source/core
parentd7c8b9c1f14ef16fe55c17c847f0ab11d47a8b8a (diff)
#97102# use BLACK for automatic font color in GetFont
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/patattr.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 978d005de145..a7fbb4913c01 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: patattr.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: dr $ $Date: 2001-10-30 14:51:09 $
+ * last change: $Author: nn $ $Date: 2002-01-30 08:53:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -387,6 +387,15 @@ void ScPatternAttr::GetFont( Font& rFont, OutputDevice* pOutDev, const Fraction*
// Auszeichnungen
+ if ( aColor.GetColor() == COL_AUTO )
+ {
+ // WindowTextColor from StyleSettings should be used only when painting!
+ // As long as GetFont is used for many different cases, always use black, so
+ // there is no disappearing text with default style settings, and printing works.
+
+ aColor.SetColor( COL_BLACK );
+ }
+
if (rFont.GetWeight() != eWeight)
rFont.SetWeight( eWeight );
if (rFont.GetItalic() != eItalic)