mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Set proper multirow size in X table columns
This commit is contained in:
parent
e581e35be3
commit
52196d6c48
@ -2884,9 +2884,14 @@ void Tabular::TeXCellPreamble(otexstream & os, idx_type cell,
|
||||
os << "\\multirow{" << rowSpan(cell) << "}{";
|
||||
if (!getPWidth(cell).zero())
|
||||
os << from_ascii(getPWidth(cell).asLatexString());
|
||||
else
|
||||
// we need to set a default value
|
||||
os << "*";
|
||||
else {
|
||||
if (column_info[c].varwidth)
|
||||
// this inherits varwidth size
|
||||
os << "=";
|
||||
else
|
||||
// we need to set a default value
|
||||
os << "*";
|
||||
}
|
||||
os << "}";
|
||||
if (!getMROffset(cell).zero())
|
||||
os << "[" << from_ascii(getMROffset(cell).asLatexString()) << "]";
|
||||
|
@ -1335,7 +1335,7 @@ void handle_tabular(Parser & p, ostream & os, string const & name,
|
||||
parse.skip_spaces(true);
|
||||
}
|
||||
|
||||
if (width != "*")
|
||||
if (width != "*" && width != "=")
|
||||
colinfo[col].width = width;
|
||||
if (!vmove.empty())
|
||||
cellinfo[row][col].mroffset = vmove;
|
||||
|
Loading…
Reference in New Issue
Block a user