+2005-06-16 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * insettabular.C (getStatus): disable LFUN_TABULAR_INSERT
+ when multiple cells are selected (bug 1837).
+
2005-05-31 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetoptarg.C (InsetOptArg): make the inset open by default
Dimension dim;
MetricsInfo m = mi;
LyXLength p_width = tabular.column_info[j].p_width;
- if (!p_width.zero()) {
+ if (!p_width.zero())
m.base.textwidth = p_width.inPixels(mi.base.textwidth);
- }
tabular.getCellInset(cell)->metrics(m, dim);
+ if (!p_width.zero())
+ dim.wid = m.base.textwidth;
maxAsc = max(maxAsc, dim.asc);
maxDesc = max(maxDesc, dim.des);
tabular.setWidthOfCell(cell, dim.wid);
// disable these with multiple cells selected
case LFUN_INSET_INSERT:
+ case LFUN_TABULAR_INSERT:
case LFUN_INSERT_CHARSTYLE:
case LFUN_INSET_FLOAT:
case LFUN_INSET_WIDE_FLOAT: