summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewView.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-13 14:01:19 +0100
committerDamiano Galassi <[email protected]>2017-11-13 14:01:19 +0100
commit17a4bb75f924854532636f4e3450ae9f4a4d8c81 (patch)
tree45a0e2e46a3f518fe21d6338bfdce4985ef45ac9 /macosx/HBPreviewView.m
parent30f2ed8041a865852b049b530a527f3821bab0dd (diff)
MacGui: short job description in the summary tab.
Diffstat (limited to 'macosx/HBPreviewView.m')
-rw-r--r--macosx/HBPreviewView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBPreviewView.m b/macosx/HBPreviewView.m
index 1864f39b9..e4d2ea630 100644
--- a/macosx/HBPreviewView.m
+++ b/macosx/HBPreviewView.m
@@ -169,7 +169,7 @@
if (imageSize.width > 0 && imageSize.height > 0) {
NSSize imageScaledSize = imageSize;
- if (self.window.backingScaleFactor != 1.0)
+ if (self.window && self.window.backingScaleFactor != 1.0)
{
// HiDPI mode usually display everything
// with douple pixel count, but we don't