From bfc98a4faace11eb1cc2ed48bb89dfc7b1435a2b Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Thu, 14 Apr 2011 21:39:47 +0000 Subject: [PATCH] Avoid useless double dispatch of cmd to same buffer (if bv and doc_bv are the same). This also fixes #7442. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38383 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 04b3ce9988..c096747e55 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -3063,7 +3063,7 @@ void GuiView::dispatchToBufferView(FuncRequest const & cmd, DispatchResult & dr) // Try with the document BufferView dispatch if any. BufferView * doc_bv = documentBufferView(); - if (doc_bv) { + if (doc_bv && doc_bv != bv) { doc_bv->dispatch(cmd, dr); if (dr.dispatched()) return; -- 2.39.2