summaryrefslogtreecommitdiffstats
path: root/lib/generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generator.js')
-rw-r--r--lib/generator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generator.js b/lib/generator.js
index 6557461..f7f319d 100644
--- a/lib/generator.js
+++ b/lib/generator.js
@@ -58,7 +58,7 @@ BaseGenerator.prototype.copyCover = function() {
])
.fail(function() {
// If orignaly from multi-lang, try copy from parent
- if (!that.isMultilingual()) return;
+ if (!that.book.isSubBook()) return;
return Q.all([
fs.copy(path.join(that.book.parentRoot(), "cover.jpg"), path.join(that.options.output, "cover.jpg")),