When compiling text.C I get the following warning:
../../lyx-devel/src/text.C: In method `int LyXText::rightMargin (const
Paragraph &, const Buffer &, const Row &) const':
../../lyx-devel/src/text.C:615: warning: value computed is not used
Indeed rightMargine reads:
int LyXText::rightMargin(Paragraph const & par,
Buffer const & buf, Row const &) const
{
LyXTextClass const & tclass = buf.params().getLyXTextClass();
LyXLayout_ptr const & layout = par.layout();
return PAPER_MARGIN
+ font_metrics::signedWidth(tclass.rightmargin(),
tclass.defaultfont());
+ font_metrics::signedWidth(layout->rightmargin,
tclass.defaultfont())
* 4 / (par.getDepth() + 4);
}
How long do you need to spot the error? Who designed a language
allowing such stupid constructs?
I am not sure what the fix is, so I'll let someone who knows fix the
function.
JMarc