]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetBox.cpp
index 4d52aec2e98ec674395e1b355bc019eb19aac32a..2b10cd663d6e75229cb49fcd5fcb105cb837b28f 100644 (file)
@@ -338,7 +338,11 @@ int InsetBox::latex(Buffer const & buf, odocstream & os,
                        // Special heights
                        // set no optional argument when the value is the default "1\height"
                        // (special units like \height are handled as "in")
-                       if (params_.height != Length("1in")) {
+                       // but when the user has chosen a non-default inner_pos, the height
+                       // must be given: \minipage[pos][height][inner-pos]{width}
+                       if ((params_.height != Length("1in") ||
+                                params_.height_special != "totalheight") ||
+                               params_.inner_pos != params_.pos) {
                                // FIXME UNICODE
                                os << "[" << params_.height.value()
                                        << "\\" << from_utf8(params_.height_special) << "]";