mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Oops, asInsetGrpahics is new to master.
This commit is contained in:
parent
1713b53516
commit
25741ca5bd
@ -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<InsetGraphics &>(*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();
|
||||
|
Loading…
Reference in New Issue
Block a user