]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Translate labels for float:algorithm, float:figure and float:table.
[lyx.git] / src / text2.C
index bec3b8529fa38f46f456b4e3c8c6fb4c4a6fa862..7853e655051189b6bf89f45456719b55bc88907c 100644 (file)
@@ -2119,7 +2119,7 @@ float LyXText::getCursorX(BufferView * bview, Row * row,
        float fill_label_hfill;
        // This call HAS to be here because of the BidiTables!!!
        prepareToPrint(bview, row, x, fill_separator, fill_hfill,
-                      fill_label_hfill);
+                      fill_label_hfill);
 
        if (last < row->pos())
                cursor_vpos = row->pos();
@@ -2351,7 +2351,7 @@ void LyXText::cursorDown(BufferView * bview, bool selecting) const
        int y = cursor.y() - cursor.row()->baseline() +
                cursor.row()->height() + 1;
        setCursorFromCoordinates(bview, x, y);
-       if (!selecting) {
+       if (!selecting && cursor.row() == cursor.irow()) {
                int y1 = cursor.iy() - first_y;
                int y2 = y1;
                y -= first_y;