commit 05c876568a452d24c480631caf74d0176dd9f9c0 Author: Richard Heck <rgh...@lyx.org> Date: Sat Dec 16 00:50:35 2017 -0500
Fix #10887 compiler warnings. --- src/frontends/qt4/GuiWorkArea.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 0df7b65..3d169d0 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -751,7 +751,7 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e) if (inset && inset->asInsetMath()) --pos.rx(); else if (cur.pos() > 0) { - Inset * inset = cur.paragraph().getInset(cur.pos() - 1); + inset = cur.paragraph().getInset(cur.pos() - 1); if (inset) ++pos.rx(); }