]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / converter.C
index 0188df95e4efe1bff6b98a2865c6603a25f85a59..7d8bb710ebc89cbba18a78e50f1be800a61e85d8 100644 (file)
@@ -337,7 +337,10 @@ bool Converters::convert(Buffer const * buffer,
                                                        from_ascii(from_format), from_ascii(to_format)));
                return false;
        }
-       OutputParams runparams(&buffer->params().encoding());
+
+       // buffer is only invalid for importing, and then runparams is not
+       // used anyway.
+       OutputParams runparams(buffer ? &buffer->params().encoding() : 0);
        runparams.flavor = getFlavor(edgepath);
 
        // Some converters (e.g. lilypond) can only output files to the