summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBTitle.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m
index 3591a4df8..59afa4c90 100644
--- a/macosx/HBTitle.m
+++ b/macosx/HBTitle.m
@@ -497,7 +497,8 @@ fail:
{
title = @(chapter->title);
}
- else
+
+ if (title == NULL)
{
title = [NSString stringWithFormat:HBKitLocalizedString(@"Chapter %d", "Title -> chapter name"), i + 1];
}