Kaydet (Commit) 285c6cd5 authored tarafından matteocam's avatar matteocam Kaydeden (comit) Fridrich Štrba

Test on changing background

Change-Id: Id1ad39eee375de229d63e749673021848690e363
(cherry picked from commit 42232134)
üst 6ffc9d12
...@@ -219,7 +219,7 @@ void EditCharAttribColor::SetFont( SvxFont& rFont, OutputDevice* ) ...@@ -219,7 +219,7 @@ void EditCharAttribColor::SetFont( SvxFont& rFont, OutputDevice* )
{ {
Color aColor = ((const SvxColorItem*)GetItem())->GetValue(); Color aColor = ((const SvxColorItem*)GetItem())->GetValue();
rFont.SetColor( aColor); rFont.SetColor( aColor);
fprintf(stderr, "Called SetFont\n"); //fprintf(stderr, "Called SetFont with Color %d\n", aColor.GetColor());
} }
......
...@@ -3698,7 +3698,12 @@ void ImpEditEngine::Paint( ImpEditView* pView, const Rectangle& rRect, OutputDev ...@@ -3698,7 +3698,12 @@ void ImpEditEngine::Paint( ImpEditView* pView, const Rectangle& rRect, OutputDev
sal_uInt8 nColorDiff = aFontColor.GetColorError( aBackgroundColor ); sal_uInt8 nColorDiff = aFontColor.GetColorError( aBackgroundColor );
if( nColorDiff < 8 ) if( nColorDiff < 8 )
aBackgroundColor = aFontColor.IsDark() ? COL_WHITE : COL_BLACK; aBackgroundColor = aFontColor.IsDark() ? COL_WHITE : COL_BLACK;
// XXX: BEGIN my changes
aBackgroundColor = COL_GRAY;
pVDev->SetBackground( aBackgroundColor ); pVDev->SetBackground( aBackgroundColor );
// END my changes
//pVDev->SetBackground( aBackgroundColor ); // original code
} }
bool bVDevValid = true; bool bVDevValid = true;
......
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