os.texrow().start(runparams.lastid, runparams.lastpos);
if (rotate != 0)
- os << "\\begin{turn}" << convert<string>(rotate) << "\n";
+ os << "\\begin{turn}{" << convert<string>(rotate) << "}\n";
if (is_long_tabular) {
os << "\\begin{longtable}";
case Tabular::TOGGLE_ROTATE_TABULAR:
case Tabular::SET_ROTATE_TABULAR:
- status.setEnabled(tabular.tabular_width.zero());
- status.setOnOff(tableIsRotated());
+ status.setOnOff(tabular.rotate != 0);
break;
case Tabular::TABULAR_VALIGN_TOP:
break;
case Tabular::UNSET_ROTATE_TABULAR:
- status.setOnOff(!tableIsRotated());
+ status.setOnOff(tabular.rotate == 0);
break;
case Tabular::TOGGLE_ROTATE_CELL:
return false;
}
-bool InsetTabular::tableIsRotated() const
-{
- if (tabular.rotate != 0)
- return true;
- else
- return false;
-}
void InsetTabular::tabularFeatures(Cursor & cur,
Tabular::Feature feature, string const & value)
case Tabular::TOGGLE_ROTATE_TABULAR:
// when pressing the rotate button we default to 90° rotation
- if (tableIsRotated())
- tabular.rotate = 90;
- else
- tabular.rotate = 0;
+ tabular.rotate != 0 ? tabular.rotate = 0 : tabular.rotate = 90;
break;
case Tabular::TABULAR_VALIGN_TOP: