]> git.lyx.org Git - lyx.git/commitdiff
Remove setBuffer call in Cursor::push.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 1 Jun 2024 16:06:13 +0000 (12:06 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 5 Jul 2024 10:28:40 +0000 (12:28 +0200)
This is potentially slow. It also should be unnecessary after
some of JMarc's recent commits. See bug #13050.

(cherry picked from commit 66cfc6af3c764b6923aae6c134c43c2155317c6a)

src/Cursor.cpp
status.24x

index 45ae34c4b265c3fc14d093ba0fca680e1e7ad5e8..b235200db9971c2879caff2582568b65c5c5c637 100644 (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());
 }
 
 
index e982adeca2c7a2bc04b618af4017cabf9ba71138..b6304efe40b25f31ae5627ed3825d407a0fc23b0 100644 (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