]> git.lyx.org Git - features.git/commitdiff
InsetBox.cpp: fix an issue with the height parameter handling
authorUwe Stöhr <uwestoehr@web.de>
Sat, 29 Sep 2007 16:47:23 +0000 (16:47 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 29 Sep 2007 16:47:23 +0000 (16:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20595 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBox.cpp

index 4d52aec2e98ec674395e1b355bc019eb19aac32a..fadc13b4b03ff81967b18aa11004f2486863b96a 100644 (file)
@@ -338,7 +338,10 @@ 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_.inner_pos != params_.pos) {
                                // FIXME UNICODE
                                os << "[" << params_.height.value()
                                        << "\\" << from_utf8(params_.height_special) << "]";