]> git.lyx.org Git - features.git/commitdiff
(Herbert): fix compatibility read of InsetFigure.
authorAngus Leeming <leeming@lyx.org>
Mon, 8 Apr 2002 17:26:33 +0000 (17:26 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 8 Apr 2002 17:26:33 +0000 (17:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3951 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphics.C

index 0f27ba48a3b5fa1c06dea4e710bd397fba9b91a6..da6133186ad146092e35e734c357d5367328e0ba 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-07  Herbert Voss  <voss@perce.de>
+
+       * insetgraphic.C (readFigInset): fix bug with subcaption and
+       rotating
+
 2002-04-08  Herbert Voss  <voss@lyx.org>
 
        * insetgraphicsparam.C: forgot special option and delete old
index 247254efb8825ad8488f63258b554bd6ffec8030..cb18a563e6473b49f356b2c240b860f90d700e29 100644 (file)
@@ -474,14 +474,14 @@ void InsetGraphics::readFigInset(LyXLex & lex)
                } else if (token == "subcaption") {
                        if (lex.eatLine())
                                params_.subcaptionText = lex.getString();
-                       params_.subcaption = true;
                } else if (token == "label") {
                        if (lex.next());
                        // kept for backwards compability. Delete in 0.13.x
                } else if (token == "angle") {
-                       if (lex.next())
+                       if (lex.next()) {
                                params_.rotate = true;
                                params_.rotateAngle = lex.getFloat();
+                       }
                } else if (token == "size") {
                        if (lex.next())
                                params_.lyxwidth = LyXLength(lex.getString()+"pt");