]> git.lyx.org Git - features.git/commitdiff
* src/tex2lyx/text.cpp
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 5 Jun 2007 07:01:47 +0000 (07:01 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 5 Jun 2007 07:01:47 +0000 (07:01 +0000)
(parse_box): Fix default height value (from Micha Feigin)

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

src/tex2lyx/text.cpp

index ade15f3f1818868de4ba216e345587ddfa4ad52b..c713ab1307989e5b0101484bb4f942cf13469348 100644 (file)
@@ -591,9 +591,11 @@ void parse_box(Parser & p, ostream & os, unsigned flags, bool outer,
 {
        string position;
        string inner_pos;
-       string height_value = "0";
-       string height_unit = "pt";
-       string height_special = "none";
+       // We need to set the height to the LaTeX default of 1\\totalheight
+       // for the case when no height argument is given
+       string height_value = "1";
+       string height_unit = "in";
+       string height_special = "totalheight";
        string latex_height;
        if (p.next_token().asInput() == "[") {
                position = p.getArg('[', ']');