summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authormatteocam <matteo.campanelli@gmail.com>2014-05-19 19:30:52 -0400
committerFridrich Štrba <fridrich.strba@bluewin.ch>2014-06-30 22:54:37 +0200
commit285c6cd514eedb0718029906a6189bf39d8232e4 (patch)
tree2057b3984b5507bfea4acdb4b898773505d529e3 /editeng
parent6ffc9d1203af0a1b445d7a9d18c4f4608e078446 (diff)
Test on changing background
Change-Id: Id1ad39eee375de229d63e749673021848690e363 (cherry picked from commit 422321340246104c0d8b11a2cf170606d8f476c3)
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editattr.cxx2
-rw-r--r--editeng/source/editeng/impedit3.cxx5
2 files changed, 6 insertions, 1 deletions
diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx
index 0d3fb251d800..2e3097eaac17 100644
--- a/editeng/source/editeng/editattr.cxx
+++ b/editeng/source/editeng/editattr.cxx
@@ -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());
}
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index f519fe8c9640..436c3754ceb3 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -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;