[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-devel
Subject: Re: Another bug
From: Juergen Vigna <jug () sad ! it>
Date: 2000-06-21 12:36:48
[Download RAW message or body]
On 21-Jun-2000 Jean-Marc Lasgouttes wrote:
> Has this been done for the 1.1.5 branch? If not, it should (send me a
> patch).
>
Here it is (just copy/paste)
Jürgen
--- src/text2.C.orig Wed Jun 21 14:28:15 2000
+++ src/text2.C Wed Jun 21 14:29:28 2000
@@ -1057,16 +1057,6 @@
if (sel_start_cursor.par == sel_end_cursor.par &&
sel_start_cursor.pos == sel_end_cursor.pos)
selection = false;
-
- // Stuff what we got on the clipboard. Even if there is no selection.
-
- // There is a problem with having the stuffing here in that the
- // larger the selection the slower LyX will get. This can be
- // solved by running the line below only when the selection has
- // finished. The solution used currently just works, to make it
- // faster we need to be more clever and probably also have more
- // calls to stuffClipboard. (Lgb)
- owner_->stuffClipboard(selectionAsString());
}
@@ -2197,6 +2187,16 @@
void LyXText::CutSelection(bool doclear)
{
+ // Stuff what we got on the clipboard. Even if there is no selection.
+
+ // There is a problem with having the stuffing here in that the
+ // larger the selection the slower LyX will get. This can be
+ // solved by running the line below only when the selection has
+ // finished. The solution used currently just works, to make it
+ // faster we need to be more clever and probably also have more
+ // calls to stuffClipboard. (Lgb)
+ owner_->stuffClipboard(selectionAsString());
+
// This doesn't make sense, if there is no selection
if (!selection)
return;
@@ -2393,6 +2393,16 @@
void LyXText::CopySelection()
{
+ // Stuff what we got on the clipboard. Even if there is no selection.
+
+ // There is a problem with having the stuffing here in that the
+ // larger the selection the slower LyX will get. This can be
+ // solved by running the line below only when the selection has
+ // finished. The solution used currently just works, to make it
+ // faster we need to be more clever and probably also have more
+ // calls to stuffClipboard. (Lgb)
+ owner_->stuffClipboard(selectionAsString());
+
// this doesnt make sense, if there is no selection
if (!selection)
return;
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: jug@sad.it
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450296
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Those who cannot remember the past are condemned to repeat it.
-- George Santayana
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic