From 25741ca5bd2ff4c7eb55de0fabfa41bbf476c77e Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 15 Feb 2018 21:48:23 +0100 Subject: [PATCH] Oops, asInsetGrpahics is new to master. --- src/BufferView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 5e5f1bc40a..e23883cd06 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1681,15 +1681,15 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) Inset * inset = from.nextInset(); if (!inset) break; - InsetGraphics * ig = inset->asInsetGraphics(); - if (ig) { - InsetGraphicsParams inspar = ig->getParams(); + if (inset->lyxCode() == GRAPHICS_CODE) { + InsetGraphics & ig = static_cast(*inset); + InsetGraphicsParams inspar = ig.getParams(); if (fetchId) { grp_par = inspar; fetchId = false; } else { grp_par.filename = inspar.filename; - ig->setParams(grp_par); + ig.setParams(grp_par); } } from.forwardInset(); -- 2.39.5