summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-07-08 00:59:01 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-07-11 10:14:38 +0000
commit402bde9397e98d464aa4f30a46fbff3cea958058 (patch)
tree9ad17d67a34d28fd4d73761b249c47de1fdd98f8 /vcl
parent17458019baa564c96dcd5e0bc73339c779456f94 (diff)
-Wdeprecated-declarations: first deprecated in OS X 10.10
vcl/osx/printaccessoryview.mm:362:37: warning: 'NSScaleProportionally' is deprecated: first deprecated in OS X 10.10 - Use NSImageScaleProportionallyDown instead [-Wdeprecated-declarations] Available in OS X v10.0 and later. Deprecated in OS X v10.10. enum { NSScaleProportionally = 0, NSScaleToFit, NSScaleNone }; Available in OS X v10.5 and later. enum { NSImageScaleProportionallyDown = 0, NSImageScaleAxesIndependently, NSImageScaleNone, NSImageScaleProportionallyUpOrDown }; Change-Id: I457196e3e8f2ebcc10e9e0fa87755e5e3dba207c Reviewed-on: https://gerrit.libreoffice.org/10121 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/printaccessoryview.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index 1ee21901c530..683823278153 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -359,7 +359,7 @@ class ControllerProperties
aPreviewFrame.size.width -= 2*(aMargins.width+1);
aPreviewFrame.size.height -= 61;
mpPreview = [[NSImageView alloc] initWithFrame: aPreviewFrame];
- [mpPreview setImageScaling: NSScaleProportionally];
+ [mpPreview setImageScaling: NSImageScaleProportionallyDown];
[mpPreview setImageAlignment: NSImageAlignCenter];
[mpPreview setImageFrameStyle: NSImageFrameNone];
[mpPreviewBox addSubview: [mpPreview autorelease]];