]> git.lyx.org Git - features.git/commitdiff
Remove assertion accidentally added during the audit.
authorRichard Heck <rgheck@lyx.org>
Fri, 26 Apr 2013 14:42:45 +0000 (10:42 -0400)
committerRichard Heck <rgheck@lyx.org>
Fri, 26 Apr 2013 14:42:45 +0000 (10:42 -0400)
src/Paragraph.cpp

index 2a4d4e7c367cef69e66c80343e6b2f1729676fa2..e5a469f5af9877c15d4c0eb0c3f587c45820ed04 100644 (file)
@@ -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);
 }