File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,6 @@ entered yet.
168168--]]
169169
170170local initShrinkage = function (frame )
171- if not frame .state or not frame .state .totals then
172- frame :init ()
173- end
174171 if not frame .state .totals .shrinkage then
175172 frame .state .totals .shrinkage = SILE .types .measurement (0 )
176173 end
Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ function frame:_init (spec, dummy)
4141 self ._constraints = {}
4242 self ._variables = {}
4343 for method in pairs (alldims ) do
44- self [method ] = function ()
45- SU .error (" Attempt to use a size method from an unresolved frame" , true )
44+ self [method ] = function (self_ )
45+ SU .warn (" Attempt to use a size method from an unresolved frame" , true )
46+ self_ :solve ()
4647 end
4748 end
4849end
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ local _margins = pl.class({
3131-- @param frame A initial frame to attach the typesetter to.
3232function typesetter :_init (frame )
3333 if not frame then
34- SU .warn (" No frame specified for typesetter, creating dummy frame" )
34+ SU .error (" No frame specified for typesetter, creating dummy frame" )
3535 frame = SILE .types .frame ({ id = " dummy" }, true )
3636 end
3737 module ._init (self )
You can’t perform that action at this time.
0 commit comments