return 0;
int y = 0;
- for (Row * row = firstrow;
+ for (Row * row = firstRow();
row && row != anchor_row_; row = row->next()) {
y += row->height();
}
void LyXText::top_y(int newy)
{
- if (!firstrow)
+ if (!firstRow())
return;
lyxerr[Debug::GUI] << "setting top y = " << newy << endl;
}
row->width(int(maxwidth + x));
if (inset_owner) {
- Row * r = firstrow;
+ Row * r = firstRow();
width = max(0, workWidth());
while (r) {
if (r->width() > width)
// insert a new row
++z;
insertRow(row, row->par(), z);
+ row = row->next();
} else {
row = row->next();
++z;
cursor.par()->next()->erase(0);
insertParagraph(cursor.par()->next(), cursor.row());
-
updateCounters();
// This check is necessary. Otherwise the new empty paragraph will
// returns pointer to a specified row
Row * LyXText::getRow(Paragraph * par, pos_type pos, int & y) const
{
- if (!firstrow)
+ if (!firstRow())
return 0;
- Row * tmprow = firstrow;
+ Row * tmprow = firstRow();
y = 0;
// find the first row of the specified paragraph
{
#if 1
// If possible we should optimize this method. (Lgb)
- Row * tmprow = firstrow;
+ Row * tmprow = firstRow();
int tmpy = 0;
while (tmprow->next() && tmpy + tmprow->height() <= y) {