]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
I reactivate the code to resize the InsetText on a resize event of the main
[lyx.git] / src / BufferView_pimpl.C
index e7f22b169954cff63e0ac82d99e2909e44219bc3..84152ccb47041b363c2642efe7a77fbe095c7659 100644 (file)
@@ -369,7 +369,9 @@ int BufferView::Pimpl::resizeCurrentBuffer()
                bv_->theLockingInset(the_locking_inset);
        }
        bv_->text->first_y = screen_->topCursorVisible(bv_->text);
-#if 0
+       // please tell me WHY the heck you deactivated this code, whoever
+       // 'you' are (Jug 20020311)
+#if 1
        buffer_->resizeInsets(bv_);
 #endif
        // this will scroll the screen such that the cursor becomes visible
@@ -1145,9 +1147,8 @@ void BufferView::Pimpl::cursorPrevious(LyXText * text)
                return;
        
        int y = text->first_y;
-       if (text->inset_owner)
-               y += bv_->text->first_y;
        Row * cursorrow = text->cursor.row();
+       
        text->setCursorFromCoordinates(bv_, bv_->text->cursor.x_fix(), y);
        finishUndo();
        // This is to allow jumping over large insets