diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-10-13 22:46:28 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-10-18 20:41:33 +0200 |
commit | 9cea34ee8334f145ca4fffdd76d6d819c427383d (patch) | |
tree | b68eb3bfd5ad20102864143811dcadc6ff343c24 /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | Just call ICU directly and cut the middle layers (diff) | |
download | core-9cea34ee8334f145ca4fffdd76d6d819c427383d.tar.gz core-9cea34ee8334f145ca4fffdd76d6d819c427383d.zip |
Check SAL_USE_COMMON_LAYOUT envar in one place
Makes it easier to flip the switch in the future (or even do something
more fancy other than checking envvar).
Change-Id: Ie42ca012c167b2108f0fca1ce9ff7beee95f1be7
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 46b9326df858..35d086d20292 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -532,7 +532,7 @@ SalLayout* CairoTextRender::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackL if( mpServerFont[ nFallbackLevel ] && !(rArgs.mnFlags & SalLayoutFlags::DisableGlyphProcessing) ) { - if (getenv("SAL_USE_COMMON_LAYOUT")) + if (SalLayout::UseCommonLayout()) { pLayout = new CommonSalLayout(*mpServerFont[nFallbackLevel]); } |