summaryrefslogtreecommitdiff
path: root/svx/source/dialog/fntctrl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-10-16 14:35:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-10-17 09:27:42 +0100
commitf264a149850d688ec53af918c04bea684d8a1617 (patch)
treeaa50e9387156107926a7ebd74bfcd78e28e6f2e8 /svx/source/dialog/fntctrl.cxx
parent62a37fd5f287999da57383ca55074d18983240e5 (diff)
show CTL preview if CTL is enabled
Diffstat (limited to 'svx/source/dialog/fntctrl.cxx')
-rw-r--r--svx/source/dialog/fntctrl.cxx11
1 files changed, 11 insertions, 0 deletions
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() )