+2000-02-17 Juergen Vigna <jug@sad.it>
+
+ * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
+ int ** as we have to return the pointer, otherwise we have only
+ NULL pointers in the returning function.
+
2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/LaTeX.C (operator()): quote file name when running latex.
src/menus.C
src/minibuffer.C
src/minibuffer.h
+src/newinsets/newinset.h
src/Painter.C
src/PaperLayout.C
src/paragraph.C
int n;
int * xp = 0;
int * yp = 0;
- mathcursor->SelGetArea(xp, yp, n);
+ mathcursor->SelGetArea(&xp, &yp, n);
pain.fillPolygon(xp, yp, n, LColor::selection);
}
mathcursor->draw(pain, int(x), baseline);
#ifdef USE_PAINTER
-void MathedCursor::SelGetArea(int * xp, int * yp, int & np)
+void MathedCursor::SelGetArea(int ** xp, int ** yp, int & np)
{
+ static int xpoint[10];
+ static int ypoint[10];
+
if (!selection) {
np = 0;
+ xpoint[0] = 0;
+ ypoint[0] = 0;
+ *xp = &xpoint[0];
+ *yp = &ypoint[0];
return;
}
-
- static int xpoint[10];
- static int ypoint[10];
// single row selection
int i = 0, x, y, a, d, xo, yo, x1, y1, a1, d1;
xpoint[i] = xpoint[0];
ypoint[i++] = ypoint[0];
- xp = &xpoint[0];
- yp = &ypoint[0];
+ *xp = &xpoint[0];
+ *yp = &ypoint[0];
np = i;
// lyxerr << "AN[" << x << " " << y << " " << x1 << " " << y1 << "] ";
// lyxerr << "MT[" << a << " " << d << " " << a1 << " " << d1 << "] ";
///
void SelBalance();
#ifdef USE_PAINTER
- void SelGetArea(int * xp, int * yp, int & n);
+ void SelGetArea(int ** xp, int ** yp, int & n);
#else
///
XPoint * SelGetArea(int &);