mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix expensive thinko: operator++ returns a reference, not a copy
This accounts for 45% of the row breaking time on the (huge) paragraph of the MWE in bug #12598. Fixes part of bug #12598.
This commit is contained in:
parent
5691863043
commit
ec151de2cc
@ -979,7 +979,7 @@ class flexible_const_iterator {
|
||||
public:
|
||||
|
||||
//
|
||||
flexible_const_iterator operator++() {
|
||||
flexible_const_iterator & operator++() {
|
||||
if (pile_.empty())
|
||||
++cit_;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user