summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editeng/source/editeng/editattr.cxx5
-rw-r--r--vcl/source/outdev/text.cxx9
2 files changed, 6 insertions, 8 deletions
diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx
index 2e3097eaac17..c7eab83e40fa 100644
--- a/editeng/source/editeng/editattr.cxx
+++ b/editeng/source/editeng/editattr.cxx
@@ -131,6 +131,11 @@ void EditCharAttribUnderline::SetFont( SvxFont& rFont, OutputDevice* pOutDev )
rFont.SetUnderline( (FontUnderline)((const SvxUnderlineItem*)GetItem())->GetValue() );
if ( pOutDev )
pOutDev->SetTextLineColor( ((const SvxUnderlineItem*)GetItem())->GetColor() );
+
+ // FIXME(matteocam)
+ Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
+ if ( pOutDev )
+ pOutDev->SetTextFillColor(aColor);
}
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 33ff382c29b4..fcdcb9a2532f 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -149,14 +149,7 @@ void OutputDevice::ImplDrawTextRect( long nBaseX, long nBaseY,
nX += nBaseX;
nY += nBaseY;
- //mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code
-
- Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) );
- Polygon aPoly( aRect );
- PolyPolygon aPolyPoly(aPoly);
- Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF);
- SetTextFillColor(aColor);
- DrawTransparent(aPolyPoly, 70);
+ mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code
}