Remove setBuffer call in Cursor::push.

This is potentially slow. It also should be unnecessary after
some of JMarc's recent commits. See bug #13050.

(cherry picked from commit 66cfc6af3c)
This commit is contained in:
Richard Kimberly Heck 2024-06-01 12:06:13 -04:00 committed by Jean-Marc Lasgouttes
parent b39fb17316
commit 46d1d6e0d3
2 changed files with 4 additions and 1 deletions

View File

@ -903,7 +903,8 @@ void Cursor::pop()
void Cursor::push(Inset & inset)
{
push_back(CursorSlice(inset));
inset.setBuffer(*buffer());
// See bug #13050
// inset.setBuffer(*buffer());
}

View File

@ -52,6 +52,8 @@ What's new
- Fix bug where the dialog asking for saving unapplied changes on buffer change
popped up twice, or sometimes not at all (bug 12954).
- Improve performance when selecting text on less powerful systems (bug 13050).
* INTERNALS