summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authormatteocam <matteo.campanelli@gmail.com>2014-05-29 11:14:09 -0400
committerFridrich Štrba <fridrich.strba@bluewin.ch>2014-06-30 22:54:39 +0200
commita74e588518df1a3f5e7209e52dcaccf38ae88e56 (patch)
tree6105a76e7b01924329b4ffbe81c3ba6b45d695bd /editeng
parent7b59e44925b4c46e682661f5468d7aa2d7d3231d (diff)
Setting SetTextFillColor from Attrs. Experiment with line color
Change-Id: If34f000d6c5ef6ec38f7f735ada194b8fff4f56d (cherry picked from commit 7fb0e8c9a659417607c85f9b0e8245e4af4552dc)
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editattr.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx
index c7eab83e40fa..bfd0c388150a 100644
--- a/editeng/source/editeng/editattr.cxx
+++ b/editeng/source/editeng/editattr.cxx
@@ -128,12 +128,15 @@ EditCharAttribUnderline::EditCharAttribUnderline( const SvxUnderlineItem& rAttr,
void EditCharAttribUnderline::SetFont( SvxFont& rFont, OutputDevice* pOutDev )
{
+ Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
+
rFont.SetUnderline( (FontUnderline)((const SvxUnderlineItem*)GetItem())->GetValue() );
- if ( pOutDev )
- pOutDev->SetTextLineColor( ((const SvxUnderlineItem*)GetItem())->GetColor() );
+ if ( pOutDev ) // FIXME(matteocam)
+ pOutDev->SetTextLineColor( aColor );
+ //pOutDev->SetTextLineColor( ((const SvxUnderlineItem*)GetItem())->GetColor() );
// FIXME(matteocam)
- Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
+
if ( pOutDev )
pOutDev->SetTextFillColor(aColor);
}