mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
singlePar with non wide inset optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20567 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f22624442d
commit
39cd77bee0
@ -1482,13 +1482,19 @@ void BufferView::updateMetrics(bool singlepar)
|
|||||||
|
|
||||||
// If the paragraph metrics has changed, we can not
|
// If the paragraph metrics has changed, we can not
|
||||||
// use the singlepar optimisation.
|
// use the singlepar optimisation.
|
||||||
if (singlepar
|
if (singlepar) {
|
||||||
|
pit_type const bottom_pit = cursor_.bottom().pit();
|
||||||
|
int old_height = tm.parMetrics(bottom_pit).height();
|
||||||
// In Single Paragraph mode, rebreak only
|
// In Single Paragraph mode, rebreak only
|
||||||
// the (main text, not inset!) paragraph containing the cursor.
|
// the (main text, not inset!) paragraph containing the cursor.
|
||||||
// (if this paragraph contains insets etc., rebreaking will
|
// (if this paragraph contains insets etc., rebreaking will
|
||||||
// recursively descend)
|
// recursively descend)
|
||||||
&& tm.redoParagraph(cursor_.bottom().pit()))
|
tm.redoParagraph(bottom_pit);
|
||||||
singlepar = false;
|
// Paragraph height has changed so we cannot proceed to
|
||||||
|
// the singlePar optimisation.
|
||||||
|
if (tm.parMetrics(bottom_pit).height() != old_height)
|
||||||
|
singlepar = false;
|
||||||
|
}
|
||||||
|
|
||||||
pit_type const pit = anchor_ref_;
|
pit_type const pit = anchor_ref_;
|
||||||
int pit1 = pit;
|
int pit1 = pit;
|
||||||
|
@ -47,6 +47,9 @@ What's new
|
|||||||
|
|
||||||
- Add a pixmap cache to speed up text drawing on screen. This cache is
|
- Add a pixmap cache to speed up text drawing on screen. This cache is
|
||||||
enabled on Mac and Windows platforms using Qt 4.2 or higher.
|
enabled on Mac and Windows platforms using Qt 4.2 or higher.
|
||||||
|
|
||||||
|
- Add an optimization that avoids a full screen drawing when typing in a
|
||||||
|
non-wide inset.
|
||||||
|
|
||||||
- Add a "Save all" menu entry, to save all modified files (bug 2840).
|
- Add a "Save all" menu entry, to save all modified files (bug 2840).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user