From: Pavel Sanda Date: Thu, 15 Feb 2018 20:48:23 +0000 (+0100) Subject: Oops, asInsetGrpahics is new to master. X-Git-Tag: 2.3.1~133^2~85 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=25741ca5bd2ff4c7eb55de0fabfa41bbf476c77e;p=features.git Oops, asInsetGrpahics is new to master. --- 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();