mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Recompute Paragraph::beginOfBody() earlier
In redoParagraph, this should be done before coping with the insets,
other wise some graphic gliches may occur. This is a better fix for
Fixes bug #10163.
(cherry picked from commit 71374b38c2
)
This commit is contained in:
parent
5f2023796a
commit
cf6b30ae76
@ -402,6 +402,7 @@ bool TextMetrics::redoParagraph(pit_type const pit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// redo insets
|
// redo insets
|
||||||
|
par.setBeginOfBody();
|
||||||
Font const bufferfont = buffer.params().getFont();
|
Font const bufferfont = buffer.params().getFont();
|
||||||
CoordCache::Insets & insetCache = bv_->coordCache().insets();
|
CoordCache::Insets & insetCache = bv_->coordCache().insets();
|
||||||
InsetList::const_iterator ii = par.insetList().begin();
|
InsetList::const_iterator ii = par.insetList().begin();
|
||||||
@ -435,7 +436,6 @@ bool TextMetrics::redoParagraph(pit_type const pit)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
par.setBeginOfBody();
|
|
||||||
pos_type first = 0;
|
pos_type first = 0;
|
||||||
size_t row_index = 0;
|
size_t row_index = 0;
|
||||||
// maximum pixel width of a row
|
// maximum pixel width of a row
|
||||||
|
@ -49,7 +49,11 @@ What's new
|
|||||||
|
|
||||||
- Fix display of multi-author citations when the GUI language is not English.
|
- Fix display of multi-author citations when the GUI language is not English.
|
||||||
|
|
||||||
- Fix bug where change tracking marks are lost under math insets (bug 10265).
|
- Fix bug where change tracking marks are lost under math insets (bug
|
||||||
|
10265).
|
||||||
|
|
||||||
|
- Fix display glitch when switching to Description layout with an inset
|
||||||
|
at the beginning of the paragraph (bug 10163)
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user