]> git.lyx.org Git - features.git/commitdiff
Strings as parameters to LASSERT should not be translatable.
authorKornel Benko <kornel@lyx.org>
Sat, 27 Apr 2013 19:13:32 +0000 (21:13 +0200)
committerKornel Benko <kornel@lyx.org>
Sat, 27 Apr 2013 19:13:32 +0000 (21:13 +0200)
But empty strings are even worse.

src/BufferView.cpp
src/CutAndPaste.cpp
src/DocIterator.cpp
src/Paragraph.cpp

index 695f95baf385c341fd9e4fc274e8893f29df39d7..c32d2954edc7aa097a64abea9c81224894620190 100644 (file)
@@ -876,7 +876,7 @@ bool BufferView::scrollToCursor(DocIterator const & dit, bool recenter)
 
        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_;
@@ -2401,7 +2401,7 @@ TextMetrics const & BufferView::textMetrics(Text const * t) const
 
 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(
@@ -2792,7 +2792,7 @@ Point BufferView::coordOffset(DocIterator const & dit) const
        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
index 80f4009f5a10662162315574d8f64d11e437b51f..893c9ef39324d82759b4c7a01a7e34001861ccb3 100644 (file)
@@ -685,7 +685,7 @@ void switchBetweenClasses(DocumentClassConstPtr oldone,
 {
        errorlist.clear();
 
-       LBUFERR(!in.paragraphs().empty(), _(""));
+       LBUFERR(!in.paragraphs().empty(), "");
        if (oldone == newone)
                return;
        
index a55fc70b5ae41d0a436fd6d8df61092b022458df..8239000d938e4d9ca8055eaef0a79fdd43723d4d 100644 (file)
@@ -210,7 +210,7 @@ FontSpan DocIterator::locateWord(word_location const loc) const
        
 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)
@@ -219,7 +219,7 @@ CursorSlice const & DocIterator::innerTextSlice() const
 
        // 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;
index 75bf9f838a8035057ce81b96e4fd5a953b78e34b..a4eb93f9d5e5c83cc64ca7db0f7c0a1c54e0cf48 100644 (file)
@@ -1044,7 +1044,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
                                    unsigned int & column)
 {
        Inset * inset = owner_->getInset(i);
-       LBUFERR(inset, _(""));
+       LBUFERR(inset, "");
 
        if (style.pass_thru) {
                odocstringstream ods;