* rowpainter.cpp (paintOnlyInsets): do not paint Hfill insets (avoids a

crash).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22045 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-12-09 17:39:41 +00:00
parent 003c6aa0f8
commit a92428c89c
2 changed files with 4 additions and 1 deletions

View File

@ -740,7 +740,7 @@ void RowPainter::paintOnlyInsets()
{
pos_type const end = row_.endpos();
for (pos_type pos = row_.pos(); pos != end; ++pos) {
if (!par_.isInset(pos))
if (!par_.isInset(pos) || par_.isHfill(pos))
continue;
if (x_ > bv_.workWidth())

View File

@ -139,6 +139,9 @@ What's new
- Fix a crash when the cursor leaves the first paragraph of the
appendix and it is empty (bug 4352).
- Fix a crash when editing in an inset that contains an horizontal spring
(hfill).
- Fix a crash when pasting text from the clipboard into a multi-line
tabular cell (bug 4368).