]> git.lyx.org Git - lyx.git/blobdiff - src/ParameterStruct.h
form para crash fix from John
[lyx.git] / src / ParameterStruct.h
index 0ac0cb42fc4a654b0467898df28448c94b638779..51a8bd37feb549bbae9ad21df23b5af337d2263d 100644 (file)
@@ -7,8 +7,16 @@
 #include "Spacing.h"
 #include "layout.h"
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 ///
 struct ParameterStruct {
+       ///
+       ParameterStruct();
+       ///
+       typedef unsigned int depth_type;
        ///
        VSpace added_space_top;
        ///
@@ -28,7 +36,7 @@ struct ParameterStruct {
        ///
        LyXAlignment align;
        ///
-       char depth; // wrong type (Lgb)
+       depth_type depth; 
        ///
        bool start_of_appendix;
        ///
@@ -54,6 +62,19 @@ struct ParameterStruct {
 };
 
 
+inline
+ParameterStruct::ParameterStruct()
+       : noindent(false), line_top(false), line_bottom(false),
+         pagebreak_top(false), pagebreak_bottom(false),
+         align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
+         appendix(false)
+#ifndef NO_PEXTRA_REALLY
+       , pextra_type(0), pextra_alignment(0), pextra_hfill(false),
+       pextra_start_minipage(false)
+#endif
+{}
+
+
 inline
 bool operator==(ParameterStruct const & ps1,
                ParameterStruct const & ps2)