Fix #10887 compiler warnings.

This commit is contained in:
Richard Heck 2017-12-16 00:50:35 -05:00
parent 8a1377f6ff
commit 05c876568a

View File

@ -751,7 +751,7 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e)
if (inset && inset->asInsetMath()) if (inset && inset->asInsetMath())
--pos.rx(); --pos.rx();
else if (cur.pos() > 0) { else if (cur.pos() > 0) {
Inset * inset = cur.paragraph().getInset(cur.pos() - 1); inset = cur.paragraph().getInset(cur.pos() - 1);
if (inset) if (inset)
++pos.rx(); ++pos.rx();
} }