]> git.lyx.org Git - lyx.git/blobdiff - src/ParameterStruct.h
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / ParameterStruct.h
index 86bc6f1e15f43d2151cd3a34134f97c6cf42f6f7..294ce16f605a600f6a04f9b301a168e9b46a3972 100644 (file)
@@ -9,6 +9,8 @@
 
 ///
 struct ParameterStruct {
+       ///
+       typedef unsigned int depth_type;
        ///
        VSpace added_space_top;
        ///
@@ -28,7 +30,7 @@ struct ParameterStruct {
        ///
        LyXAlignment align;
        ///
-       char depth; // wrong type (Lgb)
+       depth_type depth; 
        ///
        bool start_of_appendix;
        ///
@@ -37,6 +39,7 @@ struct ParameterStruct {
        string labelstring;
        ///
        string labelwidthstring;
+#ifndef NO_PEXTRA_REALLY
         ///
         int pextra_type;
         ///
@@ -49,6 +52,7 @@ struct ParameterStruct {
         bool pextra_hfill;
         ///
         bool pextra_start_minipage;
+#endif
 };
 
 
@@ -70,12 +74,16 @@ bool operator==(ParameterStruct const & ps1,
                && ps1.appendix == ps2.appendix
                && ps1.labelstring == ps2.labelstring
                && ps1.labelwidthstring == ps2.labelwidthstring
+#ifndef NO_PEXTRA_REALLY
                && ps1.pextra_type == ps2.pextra_type
                && ps1.pextra_width == ps2.pextra_width
                && ps1.pextra_widthp == ps2.pextra_widthp
                && ps1.pextra_alignment == ps2.pextra_alignment
                && ps1.pextra_hfill == ps2.pextra_hfill
-               && ps1.pextra_start_minipage == ps2.pextra_start_minipage;
+               && ps1.pextra_start_minipage == ps2.pextra_start_minipage
+#endif
+       ;
+       
 }
 
 #endif