summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-09-22 07:24:57 +0000
committerManolo Gouy <Manolo>2018-09-22 07:24:57 +0000
commit673d95b99cfb1f740691c098d7912b19d868ed96 (patch)
treebf781fbde525e9e27096fba63716f4085a6a9825
parent58fbb5cfd26ff6bf0bfcdc8bbdacade65c538781 (diff)
MacOS: fix is_bundled() function for case when [NSBundle mainBundle] is nil.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 2b359abbb..835e278c9 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1609,7 +1609,7 @@ static BOOL is_bundled() {
NSString *bpath = [bundle bundlePath];
NSString *exe_dir = [exe stringByDeletingLastPathComponent];
if ([bpath isEqualToString:exe] || [bpath isEqualToString:exe_dir]) value = 0;
- }
+ } else value = 0;
}
return value == 1;
}