From: Angus Leeming Date: Fri, 2 Jan 2004 21:25:02 +0000 (+0000) Subject: Update defaultTemplateName so that the external dialog opens with the X-Git-Tag: 1.6.10~15618 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1fe005b6c44333214a88acc1a5c1d687c9db8270;p=lyx.git Update defaultTemplateName so that the external dialog opens with the last-used template. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8292 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 9b56a10b6b..d8462e6c5e 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-12-29 Angus Leeming + + * insetexternal.C (setParams): update defaultTemplateName. + 2003-12-22 Michael Schmitt * insetbox.C: Use term "Box" in button label diff --git a/src/insets/insetexternal.C b/src/insets/insetexternal.C index 8840ebc5bf..afe126119f 100644 --- a/src/insets/insetexternal.C +++ b/src/insets/insetexternal.C @@ -65,7 +65,7 @@ external::DisplayType const defaultDisplayType = external::NoDisplay; unsigned int const defaultLyxScale = 100; -string const defaultTemplateName = "RasterImage"; +string defaultTemplateName = "RasterImage"; } // namespace anon @@ -596,6 +596,10 @@ void InsetExternal::setParams(InsetExternalParams const & p, { params_ = p; + // Subsequent calls to the InsetExternal::Params default constructor + // will use this. + defaultTemplateName = params_.templatename(); + switch (getRenderType(params_)) { case RENDERBUTTON: { RenderButton * button_ptr = renderer_->asButton();