]> git.lyx.org Git - features.git/commitdiff
Tentative fix for the "press Apply multiple times and get multiple new
authorAngus Leeming <leeming@lyx.org>
Fri, 24 Aug 2001 15:49:03 +0000 (15:49 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 24 Aug 2001 15:49:03 +0000 (15:49 +0000)
Insets" problem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2583 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlInset.h

index b92ef6ff3a6b9a8501c1de8c9b965f5f92753f7e..d42ca761aa20f2993768954c32b93fc8c10b1fd1 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-15  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * ControlInset.h (apply): tentative fix for the press Apply multiple
+       times and get multiple new Insets problem.
+
 2001-08-24  John Levon  <moz@compsoc.man.ac.uk>
 
        * ControlCharacter.C: fix typo
index 45b303df846eaf641e0aa391273f78d2ab3a820e..9b9209f932d1adebdb260364b6c034041dd35abe 100644 (file)
@@ -195,6 +195,12 @@ void ControlInset<Inset, Params>::apply()
                applyParamsToInset();
        else
                applyParamsNoInset();
+
+       *params_ = getParams(string());
+       inset_ = 0;
+       ih_.disconnect();
+
+       view().update();
 }