]> git.lyx.org Git - features.git/blobdiff - src/text2.C
Give fullRow insets a full row width, small bugfix, force rebreak of row when
[features.git] / src / text2.C
index 7ce0ae4a61268220ef34512c2d997be4a2c45fb9..0057a8600fb70dcdae350fa6f0244f518b875d36 100644 (file)
@@ -2070,7 +2070,8 @@ void LyXText::setCursor(BufferView * bview, LyXCursor & cur, Paragraph * par,
        // the end of the previous row
        cur.iy(y + row->baseline());
        Inset * ins;
-       if (pos && par->getChar(pos) == Paragraph::META_INSET &&
+       if (row->previous() && pos &&
+               par->getChar(pos) == Paragraph::META_INSET &&
                (ins=par->getInset(pos)) && (ins->needFullRow() || ins->display()))
        {
                row = row->previous();