]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.cpp
Fix regression of 88603655
[lyx.git] / src / graphics / GraphicsConverter.cpp
index 3201d5d06a05756bd633919aca5fd6dca9814e13..ebb074cb4112cf7556ec3cd187a9fe9cf4318eeb 100644 (file)
@@ -37,7 +37,7 @@ namespace lyx {
 
 namespace graphics {
 
-class Converter::Impl : public boost::signals::trackable {
+class Converter::Impl : public boost::signals2::trackable {
 public:
        ///
        Impl(FileName const &, string const &, string const &, string const &);
@@ -55,7 +55,7 @@ public:
        /** At the end of the conversion process inform the outside world
         *  by emitting a signal.
         */
-       typedef boost::signal<void(bool)> SignalType;
+       typedef boost::signals2::signal<void(bool)> SignalType;
        ///
        SignalType finishedConversion;
 
@@ -97,7 +97,7 @@ void Converter::startConversion() const
 }
 
 
-boost::signals::connection Converter::connect(slot_type const & slot) const
+boost::signals2::connection Converter::connect(slot_type const & slot) const
 {
        return pimpl_->finishedConversion.connect(slot);
 }
@@ -324,13 +324,15 @@ static void build_script(string const & from_file,
                ostringstream os;
                os << os::python() << ' '
                   << commandPrep("$$s/scripts/convertDefault.py") << ' ';
-               if (!from_format.empty())
-                       os << strip_digit(from_format) << ':';
+               if (from_format.empty())
+                       os << "unknown ";
+               else
+                       os << strip_digit(from_format) << ' ';
                // The extra " quotes around infile and outfile are needed
                // because the filename may contain spaces and it is used
                // as argument of os.system().
                os << "' + '\"' + infile + '\"' + ' "
-                  << strip_digit(to_format) << ":' + '\"' + outfile + '\"' + '";
+                  << strip_digit(to_format) << " ' + '\"' + outfile + '\"' + '";
                string const command = os.str();
 
                LYXERR(Debug::GRAPHICS,