int i = 0;
while (!empty() && (isNewline(0) || isLineSeparator(0))) {
- pimpl_->eraseIntern(0);
+ // Set Change::Type to Change::INSERTED to quietly remove it
+ setChange(0, Change::INSERTED);
+ erase(0);
++i;
}
{
if (!insetlist.empty()) {
InsetBase * inset = insetlist.begin()->inset;
- if (inset->lyxCode() == InsetBase::BIBTEX_CODE)
+ if (inset->lyxCode() == InsetBase::BIBITEM_CODE)
return static_cast<InsetBibitem *>(inset);
}
return 0;
}
LyXFont basefont;
-
+
LaTeXFeatures features(buf, bparams, runparams.nice);
-
+
// output change tracking marks only if desired,
// if dvipost is installed,
// and with dvi/ps (other formats don't work)
Change::Type change = pimpl_->lookupChange(i);
- column += Changes::latexMarkChange(os, running_change,
+ column += Changes::latexMarkChange(os, running_change,
change, output);
running_change = change;
// Needed if there is an optional argument but no contents.
if (body_pos > 0 && body_pos == size()) {
- os << "]~";
+ os << "}]~";
return_value = false;
}
Row & Paragraph::getRow(pos_type pos)
{
+ BOOST_ASSERT(!rows().empty());
+
RowList::iterator rit = rows_.end();
RowList::iterator const begin = rows_.begin();
Row const & Paragraph::getRow(pos_type pos) const
{
+ BOOST_ASSERT(!rows().empty());
+
RowList::const_iterator rit = rows_.end();
RowList::const_iterator const begin = rows_.begin();
size_t Paragraph::pos2row(pos_type pos) const
{
+ BOOST_ASSERT(!rows().empty());
+
RowList::const_iterator rit = rows_.end();
RowList::const_iterator const begin = rows_.begin();
rows_[i].dump();
}
}
-
-//void Paragraph::metrics(MetricsInfo & mi, Dimension & dim, LyXText & text)
-//{
-//}
-//
-//
-//void draw(PainterInfo & pi, int x, int y, LyXText & text) const
-//{
-//}