]> git.lyx.org Git - features.git/commitdiff
bug 2033: new math array uses clipboard
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Sep 2005 09:56:54 +0000 (09:56 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Sep 2005 09:56:54 +0000 (09:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10469 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/cursor.C

index b768cd4c8891b252f40480b60b2399ebb8815891..73ec2e6512679425c84ed31c267ef4914512b711 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-20  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * cursor.C (paste): do nothing if `data' is empty. (bug 2033)
+
 2005-09-19  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * rowpainter.C (paintText): fix RtL space width display bug (2029)
index 9af38d2fe61ea7d4d4ebe549a6d5ae3e349f7dcf..2ed2722129c922d21fd898a360bfdeba1cd33107 100644 (file)
@@ -376,7 +376,8 @@ void LCursor::getPos(int & x, int & y) const
 
 void LCursor::paste(string const & data)
 {
-       dispatch(FuncRequest(LFUN_PASTE, data));
+       if (!data.empty())
+               dispatch(FuncRequest(LFUN_PASTE, data));
 }