Kaydet (Commit) e0ffb74d authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS gh9 (1.17.28); FILE MERGED

2004/11/24 10:15:12 gh 1.17.28.1: #i37484#set text colors explicitly to black where needed
üst 18fd4fef
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: msgedit.cxx,v $ * $RCSfile: msgedit.cxx,v $
* *
* $Revision: 1.17 $ * $Revision: 1.18 $
* *
* last change: $Author: hr $ $Date: 2004-08-02 15:50:42 $ * last change: $Author: rt $ $Date: 2004-12-10 17:16:04 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -926,11 +926,10 @@ void TTLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags, ...@@ -926,11 +926,10 @@ void TTLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
{ {
TTFeatures aFeatures = ((TTTreeListBox*)&rDev)->GetFeatures( pEntry ); TTFeatures aFeatures = ((TTTreeListBox*)&rDev)->GetFeatures( pEntry );
Font aOldFont( rDev.GetFont());
Font aFont( aOldFont );
if ( aFeatures != HasNothing ) if ( aFeatures != HasNothing )
{ {
Font aOldFont( rDev.GetFont());
Font aFont( aOldFont );
if ( ( aFeatures & HasError ) != 0 || ( aFeatures & HasWarning ) != 0 ) if ( ( aFeatures & HasError ) != 0 || ( aFeatures & HasWarning ) != 0 )
{ {
Color aCol; Color aCol;
...@@ -947,6 +946,8 @@ void TTLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags, ...@@ -947,6 +946,8 @@ void TTLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
{ {
aFont.SetFillColor( aCol ); aFont.SetFillColor( aCol );
aFont.SetTransparent( FALSE ); aFont.SetTransparent( FALSE );
Color aCol( COL_BLACK );
aFont.SetColor( aCol );
} }
} }
else // so its HasAssertion or HasQAError else // so its HasAssertion or HasQAError
...@@ -973,16 +974,27 @@ void TTLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags, ...@@ -973,16 +974,27 @@ void TTLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT nFlags,
rDev.DrawWallpaper( aRect, aAssertionWP ); rDev.DrawWallpaper( aRect, aAssertionWP );
else // HasQAError else // HasQAError
rDev.DrawWallpaper( aRect, aQAErrorWP ); rDev.DrawWallpaper( aRect, aQAErrorWP );
Color aCol( COL_BLACK );
aFont.SetColor( aCol );
} }
// virtual void NotifyScrolling( long nLines ); // virtual void NotifyScrolling( long nLines );
} }
rDev.SetFont( aFont ); rDev.SetFont( aFont );
rDev.DrawText( rPos, GetText() ); rDev.DrawText( rPos, GetText() );
rDev.SetFont( aOldFont );
} }
else else
{
if( !rDev.IsSelected(pEntry) )
{
Color aCol( COL_BLACK );
aFont.SetColor( aCol );
}
rDev.SetFont( aFont );
SvLBoxString::Paint( rPos, rDev, nFlags, pEntry ); SvLBoxString::Paint( rPos, rDev, nFlags, pEntry );
}
rDev.SetFont( aOldFont );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment