mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
* insets/InsetExternal.cpp (InsetExternalParams): use the first
defined template as default instead of RasterImage (bug 3983) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19013 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9720992369
commit
625a4b7849
@ -59,7 +59,7 @@ lyx::external::DisplayType const defaultDisplayType = lyx::external::NoDisplay;
|
||||
|
||||
unsigned int const defaultLyxScale = 100;
|
||||
|
||||
string defaultTemplateName = "RasterImage";
|
||||
string defaultTemplateName;
|
||||
|
||||
} // namespace anon
|
||||
|
||||
@ -132,9 +132,15 @@ Translator<DisplayType, string> const & displayTranslator()
|
||||
InsetExternalParams::InsetExternalParams()
|
||||
: display(defaultDisplayType),
|
||||
lyxscale(defaultLyxScale),
|
||||
draft(false),
|
||||
templatename_(defaultTemplateName)
|
||||
{}
|
||||
draft(false)
|
||||
{
|
||||
if (defaultTemplateName.empty()) {
|
||||
external::TemplateManager const & etm =
|
||||
external::TemplateManager::get();
|
||||
templatename_ = etm.getTemplates().begin()->first;
|
||||
} else
|
||||
templatename_ = defaultTemplateName;
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
Loading…
x
Reference in New Issue
Block a user