Strings as parameters to LASSERT should not be translatable.

But empty strings are even worse.
This commit is contained in:
Kornel Benko 2013-04-27 21:13:32 +02:00
parent d243e53f54
commit 07ca50d905
4 changed files with 7 additions and 7 deletions

View File

@ -876,7 +876,7 @@ bool BufferView::scrollToCursor(DocIterator const & dit, bool recenter)
if (tm.contains(bot_pit)) { if (tm.contains(bot_pit)) {
ParagraphMetrics const & pm = tm.parMetrics(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. // FIXME: smooth scrolling doesn't work in mathed.
CursorSlice const & cs = dit.innerTextSlice(); CursorSlice const & cs = dit.innerTextSlice();
int offset = coordOffset(dit).y_; int offset = coordOffset(dit).y_;
@ -2401,7 +2401,7 @@ TextMetrics const & BufferView::textMetrics(Text const * t) const
TextMetrics & BufferView::textMetrics(Text const * t) TextMetrics & BufferView::textMetrics(Text const * t)
{ {
LBUFERR(t, _("")); LBUFERR(t, "");
TextMetricsCache::iterator tmc_it = d->text_metrics_.find(t); TextMetricsCache::iterator tmc_it = d->text_metrics_.find(t);
if (tmc_it == d->text_metrics_.end()) { if (tmc_it == d->text_metrics_.end()) {
tmc_it = d->text_metrics_.insert( tmc_it = d->text_metrics_.insert(
@ -2792,7 +2792,7 @@ Point BufferView::coordOffset(DocIterator const & dit) const
TextMetrics const & tm = textMetrics(sl.text()); TextMetrics const & tm = textMetrics(sl.text());
ParagraphMetrics const & pm = tm.parMetrics(sl.pit()); ParagraphMetrics const & pm = tm.parMetrics(sl.pit());
LBUFERR(!pm.rows().empty(), _("")); LBUFERR(!pm.rows().empty(), "");
y -= pm.rows()[0].ascent(); y -= pm.rows()[0].ascent();
#if 1 #if 1
// FIXME: document this mess // FIXME: document this mess

View File

@ -685,7 +685,7 @@ void switchBetweenClasses(DocumentClassConstPtr oldone,
{ {
errorlist.clear(); errorlist.clear();
LBUFERR(!in.paragraphs().empty(), _("")); LBUFERR(!in.paragraphs().empty(), "");
if (oldone == newone) if (oldone == newone)
return; return;

View File

@ -210,7 +210,7 @@ FontSpan DocIterator::locateWord(word_location const loc) const
CursorSlice const & DocIterator::innerTextSlice() const CursorSlice const & DocIterator::innerTextSlice() const
{ {
LBUFERR(!empty(), _("")); LBUFERR(!empty(), "");
// go up until first non-0 text is hit // go up until first non-0 text is hit
// (innermost text is 0 in mathed) // (innermost text is 0 in mathed)
for (int i = depth() - 1; i >= 0; --i) for (int i = depth() - 1; i >= 0; --i)
@ -219,7 +219,7 @@ CursorSlice const & DocIterator::innerTextSlice() const
// This case is in principe not possible. We _must_ // This case is in principe not possible. We _must_
// be inside a Text. // be inside a Text.
LBUFERR(false, _("")); LBUFERR(false, "");
// Squash warning // Squash warning
static const CursorSlice c; static const CursorSlice c;
return c; return c;

View File

@ -1044,7 +1044,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
unsigned int & column) unsigned int & column)
{ {
Inset * inset = owner_->getInset(i); Inset * inset = owner_->getInset(i);
LBUFERR(inset, _("")); LBUFERR(inset, "");
if (style.pass_thru) { if (style.pass_thru) {
odocstringstream ods; odocstringstream ods;