diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-09-14 05:17:34 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-09-16 06:20:26 +0900 |
commit | a41587a7410f300b5225dc15ada2972a79b66322 (patch) | |
tree | d6cae550f250d6e5853bd869d5a8ccf48d87a969 /sw/source | |
parent | 381a790066dba9d9e32196c36e31dd13402bbac4 (diff) |
tdf#102074 Allow to choose page direction on printing brochure
not only for CTL, but also for CJK.
Change-Id: Ic987e6f97a42d66aa859d5da496542ed099eadf0
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/view/printdata.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx index b64e65c578ce..b238094e2cdc 100644 --- a/sw/source/core/view/printdata.cxx +++ b/sw/source/core/view/printdata.cxx @@ -167,14 +167,14 @@ SwPrintUIOptions::SwPrintUIOptions( return; } - // check if CTL is enabled + // check if either CJK or CTL is enabled SvtLanguageOptions aLangOpt; - bool bCTL = aLangOpt.IsCTLFontEnabled(); + bool bRTL = aLangOpt.IsCJKFontEnabled() || aLangOpt.IsCTLFontEnabled(); // create sequence of print UI options // (5 options are not available for Writer-Web) - const int nCTLOpts = bCTL ? 1 : 0; - const int nNumProps = nCTLOpts + (bWeb ? 15 : 21); + const int nRTLOpts = bRTL ? 1 : 0; + const int nNumProps = nRTLOpts + (bWeb ? 15 : 21); m_aUIProperties.resize( nNumProps ); int nIdx = 0; @@ -368,7 +368,7 @@ SwPrintUIOptions::SwPrintUIOptions( bDefaultVal, aPageSetOpt); - if (bCTL) + if (bRTL) { // create a bool option for brochure RTL dependent on brochure uno::Sequence< OUString > aBRTLChoices( 2 ); |