]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Split external_templates to individual *.xtemplate files
[lyx.git] / src / Converter.cpp
index 2c1ae2d87827a17e9464d3a7b99c6d7b9ebbf42f..2f22030495139195f2d1c20fb05755cf6663cc33 100644 (file)
@@ -235,8 +235,8 @@ void Converters::update(Formats const & formats)
        ConverterList::iterator it = converterlist_.begin();
        ConverterList::iterator end = converterlist_.end();
        for (; it != end; ++it) {
-               it->setFrom(theFormats().getFormat(it->from()));
-               it->setTo(theFormats().getFormat(it->to()));
+               it->setFrom(formats.getFormat(it->from()));
+               it->setTo(formats.getFormat(it->to()));
        }
 }
 
@@ -247,8 +247,8 @@ void Converters::updateLast(Formats const & formats)
 {
        if (converterlist_.begin() != converterlist_.end()) {
                ConverterList::iterator it = converterlist_.end() - 1;
-               it->setFrom(theFormats().getFormat(it->from()));
-               it->setTo(theFormats().getFormat(it->to()));
+               it->setFrom(formats.getFormat(it->from()));
+               it->setTo(formats.getFormat(it->to()));
        }
 }