mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
silence compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33830 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6b8532784b
commit
dba368d291
@ -3228,10 +3228,9 @@ void InsetTabular::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
// = descent of text in last par + TEXT_TO_INSET_OFFSET:
|
||||
int const lastpardes = tm.last().second->descent()
|
||||
+ TEXT_TO_INSET_OFFSET;
|
||||
int offset;
|
||||
int offset = 0;
|
||||
switch (tabular.getVAlignment(cell)) {
|
||||
case Tabular::LYX_VALIGN_TOP:
|
||||
offset = 0;
|
||||
break;
|
||||
case Tabular::LYX_VALIGN_MIDDLE:
|
||||
offset = -(dim.des - lastpardes)/2;
|
||||
|
Loading…
Reference in New Issue
Block a user