]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/source.cc
release: 1.0.1
[lilypond.git] / lib / source.cc
index d350b487cae7c3b093ebe20854177a13a8005665..81423bb1cb95b01a5a4b063628dbcd4f128f1bc1 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the LilyPond music typesetter
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -15,7 +15,7 @@
 #include "plist.hh"
 #include "source-file.hh"
 #include "source.hh"
-#include "path.hh"
+#include "file-path.hh"
 
 Sources::Sources ()
 {
@@ -46,14 +46,14 @@ Sources::set_path (File_path *f_C)
 Source_file*
 Sources::get_file_l (String &file_str) //UGH
 {
-  if (path_C_)
+  if ((file_str != "-") && path_C_)
     {
       String file_str_o = path_C_->find (file_str); 
       if ((file_str_o == "") && (file_str != ""))
        return 0;
       file_str = file_str_o;
     }
-  Source_file * f_p= (!binary_b_) ?
+  Source_file * f_p = (!binary_b_) ?
     new Source_file (file_str) : new Binary_source_file (file_str);
   add (f_p);
   return f_p;