Pavel Sanda wrote:
Author: younes
Date: Tue Mar  4 13:22:48 2008
New Revision: 23435

URL: http://www.lyx.org/trac/changeset/23435
Log:
Fix and improves labels and references in mathed.

* InsetMathHull:

Better now?

Author: younes
Date: Tue Mar  4 13:50:06 2008
New Revision: 23439

URL: http://www.lyx.org/trac/changeset/23439
Log:
tentatively fix gcc compilation.

Modified:
    lyx-devel/trunk/src/mathed/InsetMathHull.cpp

Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/mathed/InsetMathHull.cpp?rev=23439
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp (original)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp Tue Mar  4 13:50:06 2008
@@ -140,9 +140,10 @@
        }
 }

+static InsetLabel * dummy_pointer = 0;

 InsetMathHull::InsetMathHull()
-       : InsetMathGrid(1, 1), type_(hullNone), nonum_(1, false), label_(1, 0),
+ : InsetMathGrid(1, 1), type_(hullNone), nonum_(1, false), label_(1, dummy_pointer),
          preview_(new RenderPreview(this))
 {
        //lyxerr << "sizeof InsetMath: " << sizeof(InsetMath) << endl;
@@ -155,7 +156,7 @@


 InsetMathHull::InsetMathHull(HullType type)
- : InsetMathGrid(getCols(type), 1), type_(type), nonum_(1, false), label_(1, 0), + : InsetMathGrid(getCols(type), 1), type_(type), nonum_(1, false), label_(1, dummy_pointer),
          preview_(new RenderPreview(this))
 {
        initMath();
@@ -687,7 +688,7 @@
        if (!rowChangeOK())
                return;
        nonum_.insert(nonum_.begin() + row + 1, !numberedType());
-       label_.insert(label_.begin() + row + 1, 0);
+       label_.insert(label_.begin() + row + 1, dummy_pointer);
        InsetMathGrid::addRow(row);
 }




Reply via email to