* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
+ * \author Abdelrazak Younes
* \author André Pönitz
* \author Uwe Stöhr
*
InsetLine::InsetLine(Buffer * buf, InsetCommandParams const & p)
- : InsetCommand(buf, p, "line")
+ : InsetCommand(buf, p)
{}
case LFUN_INSET_MODIFY: {
InsetCommandParams p(LINE_CODE);
// FIXME UNICODE
- InsetCommand::string2params("line",
- to_utf8(cmd.argument()), p);
+ InsetCommand::string2params(to_utf8(cmd.argument()), p);
if (p.getCmdName().empty()) {
cur.noScreenUpdate();
break;
Length offset = Length(to_ascii(getParam("offset")));
offset_ = offset.inPixels(max_width, fm.width(char_type('M')));
- dim.asc = max(fm.maxAscent(), offset_ + height_/2);
- dim.des = max(fm.maxDescent(), height_/2 - offset_);
+ dim.asc = max(fm.maxAscent(), offset_ + height_);
+ dim.des = max(fm.maxDescent(), - offset_);
// Cache the inset dimension
setDimCache(mi, dim);