]> git.lyx.org Git - features.git/commitdiff
don't know what i am doing here, but removing this doesn't seem to have any side...
authorEdwin Leuven <e.leuven@gmail.com>
Tue, 25 Mar 2008 21:36:54 +0000 (21:36 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Tue, 25 Mar 2008 21:36:54 +0000 (21:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23956 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index d7ffb3446dee6eec4b1a5cb61ee270c67e01bb26..1a3a8459622c9465b11164d218c0fca5645330e5 100644 (file)
@@ -2870,12 +2870,6 @@ void InsetTabular::metrics(MetricsInfo & mi, Dimension & dim) const
                        if (!p_width.zero())
                                dim.wid = m.base.textwidth;
                        tabular.setCellWidth(cell, dim.wid);
-                       if (p_width.zero()) {
-                               m.base.textwidth = dim.wid + 2 * ADD_TO_TABULAR_WIDTH;
-                               // FIXME there must be a way to get rid of
-                               // the second metrics call
-                               tabular.cellInset(cell)->metrics(m, dim);
-                       }
                        maxAsc  = max(maxAsc, dim.asc);
                        maxDesc = max(maxDesc, dim.des);
                        ++cell;