+2004-04-20 Angus Leeming <leeming@lyx.org>
+
+ * math_nestinset.C (notifyCursorLeaves): squash warning about
+ unused var.
+
2004-04-20 Angus Leeming <leeming@lyx.org>
* math_hullinset.C (addPreview): Add the preview only if
could be replaced by the compiler-generated defaults if preview_
was stored as a RenderPreview var rather than a scoped pointer.
(metrics, draw): use the preview renderer if previewing is turned on.
-
+
2004-04-05 Angus Leeming <leeming@lyx.org>
* math_scriptinset.C (up, down, notifyCursorLeaves): ensure that
CursorSlice s1 = cur.selBegin();
CursorSlice s2 = cur.selEnd();
//lyxerr << "MathNestInset::drawing selection: "
- // << " s1: " << s1 << " s2: " << s2 << endl;
+ // << " s1: " << s1 << " s2: " << s2 << endl;
if (s1.idx() == s2.idx()) {
MathArray const & c = cell(s1.idx());
int x1 = c.xo() + c.pos2x(s1.pos());
pi.pain.fillRectangle(x1, y1, x2 - x1, y2 - y1, LColor::selection);
//lyxerr << "MathNestInset::drawing selection 3: "
// << " x1: " << x1 << " x2: " << x2
- // << " y1: " << y1 << " y2: " << y2 << endl;
+ // << " y1: " << y1 << " y2: " << y2 << endl;
} else {
for (idx_type i = 0; i < nargs(); ++i) {
if (idxBetween(i, s1.idx(), s2.idx())) {
}
-void MathNestInset::notifyCursorLeaves(LCursor & cur)
+void MathNestInset::notifyCursorLeaves(LCursor & /*cur*/)
{
#warning look here
#if 0
switch (cmd.action) {
case LFUN_PASTE: {
- recordUndo(cur);
+ recordUndo(cur);
cur.message(_("Paste"));
replaceSelection(cur);
size_t n = 0;
FuncStatus & flag) const
{
// the font related toggles
- //string tc = "mathnormal";
+ //string tc = "mathnormal";
bool ret = true;
switch (cmd.action) {
#if 0