mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
Fix full screen repaint on Buffer-load.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15999 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
37ee9727f7
commit
6ed456cfdf
@ -197,9 +197,6 @@ void BufferView::setBuffer(Buffer * b)
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: in principle, a simple call to updateMetrics(false) should
|
||||
// be enough here. But, for unknown reason, it seems that only the line
|
||||
// of the cursor is updated in the CoordCache.
|
||||
if (buffer_)
|
||||
updateMetrics(false);
|
||||
|
||||
@ -282,7 +279,9 @@ bool BufferView::loadLyXFile(string const & filename, bool tolastfiles)
|
||||
if (it.pit() == pit) {
|
||||
// restored pos may be bigger than it->size
|
||||
setCursor(makeDocIterator(it, min(pos, it->size())));
|
||||
update(Update::FitCursor);
|
||||
// No need to update the metrics if fitCursor returns false.
|
||||
if (fitCursor())
|
||||
updateMetrics(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user