#include "buffer.h"
#include "lyxscreen.h"
#include "minibuffer.h"
+#include "debug.h"
static const int LYX_PAPER_MARGIN = 20;
/* table stuff -- begin*/
if (row->par->table)
- parindent.erase();
+ parindent.clear();
/* table stuff -- end*/
x = LYX_PAPER_MARGIN;
if (row->par->FirstPhysicalPar()->Previous()) {
newpar = row->par->DepthHook(row->par->GetDepth());
if (newpar && lyxstyle.Style(parameters->textclass, newpar->GetLayout())->nextnoindent)
- parindent.erase();
+ parindent.clear();
}
}
}
if (newpar && !row->par->GetLayout()) {
if (newpar->FirstPhysicalPar()->noindent)
- parindent.erase();
+ parindent.clear();
else
parindent = lyxstyle.Style(parameters->textclass,
newpar->GetLayout())->parindent;
}
}
- //fprintf(stderr,"rightmargin: %s\n", layout->rightmargin.c_str());
- //fflush(stderr);
+ //lyxerr << "rightmargin: " << layout->rightmargin << endl;
x += (lyxstyle.TextClass(parameters->textclass)->defaultfont.signedStringWidth(layout->rightmargin) * 4
/ (row->par->GetDepth() + 4));
return x;
LyXFont font;
int maxdesc;
if (row_ptr->height <= 0) {
- fprintf(stderr, "LYX_ERROR: row.height: %d \n",
- row_ptr->height);
+ lyxerr << "LYX_ERROR: row.height: " << row_ptr->height << endl;
return;
}
left_margin = LabelEnd(row_ptr);