if (tm.contains(bot_pit)) {
ParagraphMetrics const & pm = tm.parMetrics(bot_pit);
- LBUFERR(!pm.rows().empty(), _(""));
+ LBUFERR(!pm.rows().empty(), "");
// FIXME: smooth scrolling doesn't work in mathed.
CursorSlice const & cs = dit.innerTextSlice();
int offset = coordOffset(dit).y_;
TextMetrics & BufferView::textMetrics(Text const * t)
{
- LBUFERR(t, _(""));
+ LBUFERR(t, "");
TextMetricsCache::iterator tmc_it = d->text_metrics_.find(t);
if (tmc_it == d->text_metrics_.end()) {
tmc_it = d->text_metrics_.insert(
TextMetrics const & tm = textMetrics(sl.text());
ParagraphMetrics const & pm = tm.parMetrics(sl.pit());
- LBUFERR(!pm.rows().empty(), _(""));
+ LBUFERR(!pm.rows().empty(), "");
y -= pm.rows()[0].ascent();
#if 1
// FIXME: document this mess
CursorSlice const & DocIterator::innerTextSlice() const
{
- LBUFERR(!empty(), _(""));
+ LBUFERR(!empty(), "");
// go up until first non-0 text is hit
// (innermost text is 0 in mathed)
for (int i = depth() - 1; i >= 0; --i)
// This case is in principe not possible. We _must_
// be inside a Text.
- LBUFERR(false, _(""));
+ LBUFERR(false, "");
// Squash warning
static const CursorSlice c;
return c;