]> git.lyx.org Git - features.git/commitdiff
following revert of 23068: Better fix for bug 4044
authorAbdelrazak Younes <younes@lyx.org>
Wed, 20 Feb 2008 14:53:19 +0000 (14:53 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 20 Feb 2008 14:53:19 +0000 (14:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23076 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index c8c3b3501e9367614fecb0744b2dd41140bce50e..39a4272f509f475109349bcd389a1dd36c5927b2 100644 (file)
@@ -1357,23 +1357,16 @@ void BufferView::clearSelection()
 
 void BufferView::resize(int width, int height)
 {
-       bool initialResize = (height_ == 0);
-       
        // Update from work area
        width_ = width;
        height_ = height;
 
        // Clear the paragraph height cache.
        d->par_height_.clear();
-
+       // Redo the metrics.
        updateMetrics();
-
-       // view got his initial size, make sure that
-       // the cursor has a proper position
-       if (initialResize) {
-               updateScrollbar();
-               showCursor();
-       }
+       // Make sure the current cursor is visible.
+       showCursor();
 }