Kaydet (Commit) 42232134 authored tarafından matteocam's avatar matteocam

Test on changing background

Change-Id: Id1ad39eee375de229d63e749673021848690e363
üst 1091871d
......@@ -219,7 +219,7 @@ void EditCharAttribColor::SetFont( SvxFont& rFont, OutputDevice* )
{
Color aColor = ((const SvxColorItem*)GetItem())->GetValue();
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
sal_uInt8 nColorDiff = aFontColor.GetColorError( aBackgroundColor );
if( nColorDiff < 8 )
aBackgroundColor = aFontColor.IsDark() ? COL_WHITE : COL_BLACK;
// XXX: BEGIN my changes
aBackgroundColor = COL_GRAY;
pVDev->SetBackground( aBackgroundColor );
// END my changes
//pVDev->SetBackground( aBackgroundColor ); // original code
}
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