]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-book.cc
* lily/ledger-line-spanner.cc (print): swap linear_combination
[lilypond.git] / lily / paper-book.cc
index 8a62290fc178d40265de171a7d855a9b1ed08468..f7ead445a93b2483ad6afe0ffc2b45ec8f26c0f1 100644 (file)
@@ -170,21 +170,23 @@ Paper_book::output (String outname)
        scopes = scm_cons (header_, scopes);
   
       String mod_nm = "scm framework-" + format;
-      
-      SCM mod = scm_c_resolve_module (mod_nm.to_str0 ());
-      SCM func = scm_c_module_lookup (mod, "output-framework");
 
-      func = scm_variable_ref (func);
-      scm_apply_0 (func, scm_list_n (out->self_scm (),
-                                    self_scm (),
-                                    scopes,
-                                    dump_fields (),
-                                    scm_makfrom0str (outname.to_str0 ()),
-                                    SCM_UNDEFINED));
-      out->close ();
-      scm_gc_unprotect_object (out->self_scm ());
+      SCM mod = scm_c_resolve_module (mod_nm.to_str0 ());
+      if (make_pages)
+       {
+         SCM func = scm_c_module_lookup (mod, "output-framework");
 
-      post_processing (mod, scm_makfrom0str (file_name.to_str0 ()));
+         func = scm_variable_ref (func);
+         scm_apply_0 (func, scm_list_n (out->self_scm (),
+                                        self_scm (),
+                                        scopes,
+                                        dump_fields (),
+                                        scm_makfrom0str (outname.to_str0 ()),
+                                        SCM_UNDEFINED));
+         out->close ();
+         scm_gc_unprotect_object (out->self_scm ());
+         post_processing (mod, scm_makfrom0str (file_name.to_str0 ()));
+       }
       
       if (make_preview)
        {