On 04/26/2013 11:39 AM, Kornel Benko wrote:
Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck
<rgh...@lyx.org>
> The branch, master, has been updated.
>
> - Log -----------------------------------------------------------------
>
> commit 78652c98c8af2290492d969570a084ad58ec0c02
> Author: Richard Heck <rgh...@lyx.org>
> Date: Fri Apr 26 10:42:45 2013 -0400
>
> Remove assertion accidentally added during the audit.
>
> diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
> index 2a4d4e7..e5a469f 100644
> --- a/src/Paragraph.cpp
> +++ b/src/Paragraph.cpp
> @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const
> }
>
> // This should not happen, but if so, we take no chances.
> - LBUFERR(false, _("Invalid position."));
> - // Squash warning
> - return FontSpan();
> + LYXERR0("Paragraph::getEndPosOfFontSpan: This should not happen!");
> + return FontSpan(pos, pos);
> }
>
>
Richard, BTW, should these messages really be translatable?
The all refer to source code, this is at least very difficult to
translate.
Do you mean the "Invalid position" stuff? I made them translatable in
case anyone wanted them to be---they do turn up in a dialog box---but it
is easy enough to make them not translatable, if you think that is better.
Richard