Author: vfr
Date: Tue Jun 1 09:50:22 2010
New Revision: 34569
URL: http://www.lyx.org/trac/changeset/34569
Log:
branch: Fix bug #6677: GUI button disappears in external template inset.
Initialize the preview_mode variable.
see r34346.
Modified:
lyx-devel/branches/BRANCH_1_6_X/src/insets/ExternalTemplate.cpp
lyx-devel/branches/BRANCH_1_6_X/status.16x
Modified: lyx-devel/branches/BRANCH_1_6_X/src/insets/ExternalTemplate.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/insets/ExternalTemplate.cpp Tue Jun
1 09:47:52 2010 (r34568)
+++ lyx-devel/branches/BRANCH_1_6_X/src/insets/ExternalTemplate.cpp Tue Jun
1 09:50:22 2010 (r34569)
@@ -50,7 +50,7 @@
// We have to have dummy default commands for security reasons!
Template::Template()
- : inputFormat("*")
+ : inputFormat("*"), preview_mode(PREVIEW_OFF),
automaticProduction(false)
{}
Modified: lyx-devel/branches/BRANCH_1_6_X/status.16x
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/status.16x Tue Jun 1 09:47:52 2010
(r34568)
+++ lyx-devel/branches/BRANCH_1_6_X/status.16x Tue Jun 1 09:50:22 2010
(r34569)
@@ -103,6 +103,9 @@
- Clear an existing selection when using "Navigate Back" (bug 6686).
+- Correctly paint the button for external material when the "Preview"
+ attribute is not defined (bug 6677).
+
* USER INTERFACE