summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)