From f264a149850d688ec53af918c04bea684d8a1617 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 16 Oct 2011 14:35:24 +0100 Subject: show CTL preview if CTL is enabled --- svx/source/dialog/fntctrl.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'svx') diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index 386edfc985dc..6af2f7af3068 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -690,6 +690,7 @@ void SvxFontPrevWindow::Paint( const Rectangle& ) Printer* pPrinter = pImpl->pPrinter; const SvxFont& rFont = pImpl->aFont; const SvxFont& rCJKFont = pImpl->aCJKFont; + const SvxFont& rCTLFont = pImpl->aCTLFont; if ( !IsEnabled() ) { @@ -721,7 +722,17 @@ void SvxFontPrevWindow::Paint( const Rectangle& ) { pImpl->aText = rFont.GetName(); if (pImpl->m_bCJKEnabled) + { + if (pImpl->aText.Len()) + pImpl->aText.AppendAscii(" "); pImpl->aText += rCJKFont.GetName(); + } + if (pImpl->m_bCTLEnabled) + { + if (pImpl->aText.Len()) + pImpl->aText.AppendAscii(" "); + pImpl->aText += rCTLFont.GetName(); + } } if ( !pImpl->aText.Len() ) -- cgit