svtools/source/edit/texteng.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit ecb7bfea45b2385ae7799ecfe7e77d695b57424a Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Mar 13 10:33:10 2012 +0100 TextEngine::SeekCursor needs to call SetFont after all 10f28d5c9a072bf108a79f3b05ad8247ca0dcea5 "callcatcher: build fixes" had removed this with the comment "SetFont() doesn't do anything" but that is clearly wrong: Without this, e.g. bold text within text fields is not displayed as such (e.g., "File - New - Templates and Documnets - Templates - Presentation Backgrounds - Black and White": the captions in the right hand pane ("Title:", "Date:", etc.) should be bold). Signed-off-by: Caolán McNamara <caol...@redhat.com> diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx index 06062b8..c0a5151 100644 --- a/svtools/source/edit/texteng.cxx +++ b/svtools/source/edit/texteng.cxx @@ -1477,7 +1477,11 @@ void TextEngine::SeekCursor( sal_uLong nPara, sal_uInt16 nPos, Font& rFont, Outp if ( ( ( pAttrib->GetStart() < nPos ) && ( pAttrib->GetEnd() >= nPos ) ) || !pNode->GetText().Len() ) { - if ( pAttrib->Which() == TEXTATTR_FONTCOLOR ) + if ( pAttrib->Which() != TEXTATTR_FONTCOLOR ) + { + pAttrib->GetAttr().SetFont(rFont); + } + else { if ( pOutDev ) pOutDev->SetTextColor( ((TextAttribFontColor&)pAttrib->GetAttr()).GetColor() );
_______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits