summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-03-30 01:50:58 -0400
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-04-24 14:25:12 +0000
commite6b142a06833404d8b8a5be0501fd4751df60f35 (patch)
treeed3c8ae84100122782d6d837a8663a7e1fce45f8 /vcl/quartz
parent7cf38082fd797b316d0f8b3e8227244362755efd (diff)
vcl-quartz: fix build of recently introduced DrawTextSpecial for OSX<10.6
Change-Id: I277d9e2f385b712001385e115b22f6fbb8106ae5 Reviewed-on: https://gerrit.libreoffice.org/8790 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/ctlayout.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/quartz/ctlayout.cxx b/vcl/quartz/ctlayout.cxx
index 06bf300a7f26..93764025cd28 100644
--- a/vcl/quartz/ctlayout.cxx
+++ b/vcl/quartz/ctlayout.cxx
@@ -278,9 +278,13 @@ bool CTLayout::DrawTextSpecial( SalGraphics& rGraphics, sal_uInt32 flags ) const
CFDictionaryGetCount(mpTextStyle->GetStyleDict()),
mpTextStyle->GetStyleDict());
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ /* just don't do 'kCTStrokeWidthAttributeName' */
+#else
int nStroke = 2;
CFNumberRef rStroke = CFNumberCreate(NULL, kCFNumberSInt32Type, &nStroke);
CFDictionarySetValue(styledict, kCTStrokeWidthAttributeName, rStroke);
+#endif
CFAttributedStringRef pAttrStr = CFAttributedStringCreate(
NULL,