From 7326786d93a9f17d60be4ffcabd812193d2925aa Mon Sep 17 00:00:00 2001 From: Lukas Barth Date: Wed, 19 Oct 2016 19:37:09 +0200 Subject: [PATCH] Make sure all resources are set --- ipelets/presentation/presentation.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ipelets/presentation/presentation.lua b/ipelets/presentation/presentation.lua index 18d007c..0616a73 100644 --- a/ipelets/presentation/presentation.lua +++ b/ipelets/presentation/presentation.lua @@ -446,10 +446,11 @@ local function create_boxed(model,values, pos, prim) t.redo = function (t, doc) doc[t.pno]:replace(t.primary, t.final) end + model:runLatex() -- Necessary to re-set the resources! model:register(t) else + model:runLatex() -- Necessary to re-set the resources! model:creation("create boxed text", obj) - -- model.doc:runLatex() -- may crash the thing end end @@ -533,8 +534,10 @@ local function create_tabbed(model,values, pos, prim) t.redo = function (t, doc) doc[t.pno]:replace(t.primary, t.final) end + model:runLatex() -- Necessary to re-set the resources! model:register(t) else + model:runLatex() -- Necessary to re-set the resources! model:creation("create tabbed text", obj) -- model.doc:runLatex() -- may crash the thing end @@ -685,7 +688,7 @@ function _G.MODEL:action_edit() local prim = p:primarySelection() if not prim then self:presentation_backup_action_edit() - return + return end local obj = p[prim] if obj:type() == "group" then @@ -764,7 +767,7 @@ function boxit(model) elseif model.attributes.fill then d:set("fill", indexOf(model.attributes.fill,colors) ) end - + if indexOf("boxborder",pens) then d:set("pen", indexOf("boxborder",pens)) elseif model.attributes.pen then @@ -816,4 +819,3 @@ methods = { { label = "Tabbed/Boxed Text", run=tabbedboxed}, { label = "Deselect All", run=deselectAll}, } - -- 2.34.1