Kaydet (Commit) 70f7599d authored tarafından Jian Hong Cheng's avatar Jian Hong Cheng

Fix issue #i120769: Color of underline display wrongly

* sw/source/core/text/itrpaint.cxx
Core function and MS Word Binary compatibility

Patch by: Jane Kang,<kangjane2012@gmail.com>
Found by: Yan Ji,<yanji.yj@gmail.com>
Review by: Jian Hong Cheng,<chengjh@apache.org>           
üst e2005137
......@@ -521,11 +521,13 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
// If current underline matches the common underline font, we continue
// to use the common underline font.
//Bug 120769:Color of underline display wrongly
Color aAutoCo(COL_AUTO);
if ( GetInfo().GetUnderFnt() &&
GetInfo().GetUnderFnt()->GetFont().GetUnderline() ==
GetFnt()->GetUnderline() )
return;
GetInfo().GetUnderFnt()->GetFont().GetUnderline() == GetFnt()->GetUnderline() &&
GetInfo().GetFont() && GetInfo().GetFont()->GetUnderColor() != aAutoCo )
return;
//Bug 120769(End)
// calculate the new common underline font
SwFont* pUnderlineFnt = 0;
Point aCommonBaseLine;
......
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