}
-// static
-char InsetMathGrid::colAlign(HullType type, col_type col, BufferParams const & bp)
+char InsetMathGrid::colAlign(HullType type, col_type col) const
{
switch (type) {
case hullEqnArray:
case hullMultline:
return 'c';
case hullGather:
- if (!bp.is_math_indent)
- return 'c';
- else
+ LASSERT(isBufferValid(),
+ LYXERR0("Buffer not set correctly. Please report!");
+ return 'c';);
+ if (buffer().params().is_math_indent)
return 'l';
+ else
+ return 'c';
case hullAlign:
case hullAlignAt:
// InsetMathSplit.
/// The value of a fixed col align for a certain hull type (can
/// depend on the "indent math" setting).
- static char colAlign(HullType type, col_type col, BufferParams const &);
+ char colAlign(HullType type, col_type col) const;
/// The value of a fixed col spacing for a certain hull type
static int colSpace(HullType type, col_type col);
// alignment is not implemented in the LyXHTML output.
char InsetMathHull::defaultColAlign(col_type col)
{
- return colAlign(type_, col, buffer().params());
+ return colAlign(type_, col);
}
case hullXAlignAt:
case hullXXAlignAt:
case hullFlAlign:
- return colAlign(type_, col(idx), buffer().params());
+ return colAlign(type_, col(idx));
default:
break;
}
|| name_ == "aligned"
|| name_ == "align"
|| name_ == "alignedat")
- return colAlign(hullAlign, col, buffer().params());
+ return colAlign(hullAlign, col);
return 'l';
}
|| name_ == "aligned"
|| name_ == "align"
|| name_ == "alignedat")
- return colAlign(hullAlign, col(idx), buffer().params());
+ return colAlign(hullAlign, col(idx));
return InsetMathGrid::displayColAlign(idx);
}