]> git.lyx.org Git - features.git/commitdiff
Fix cursor repositioning when a Window is resized or when switching Windows showing...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 15 Dec 2006 16:16:20 +0000 (16:16 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 15 Dec 2006 16:16:20 +0000 (16:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16282 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.C

index 3bb94f8d937c3f3bec1010aa441764d630fc4605..2730eea638919ae893c6e8b975ba81161b8b44e6 100644 (file)
@@ -302,7 +302,7 @@ void BufferView::resize()
        lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl;
 
        buffer_->text().init(this);
-       update();
+       updateMetrics(false);
        switchKeyMap();
 }
 
@@ -1023,8 +1023,6 @@ void BufferView::workAreaResize(int width, int height)
 
        if (buffer_)
                resize();
-
-       update();
 }