diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-03-13 10:33:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-03-13 10:39:52 +0100 |
commit | 40c0ff75d2a0f987454b068a663908e6d9b87b9b (patch) | |
tree | ae2d479e08eb46af4b1b55e200189e57561203a4 /svtools | |
parent | 760e0d2d7329ca6fc00a8439715bae38becb168a (diff) |
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).
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/texteng.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx index 6baf8a9c4eb1..30aef8f319f6 100644 --- a/svtools/source/edit/texteng.cxx +++ b/svtools/source/edit/texteng.cxx @@ -1476,7 +1476,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() ); |