Skip to content

Commit 65045a1

Browse files
committed
fixup! [TMP]: TODO notes on branch
1 parent c378aa6 commit 65045a1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

packages/insertions/init.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ entered yet.
168168
--]]
169169

170170
local 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

types/frame.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
4849
end

typesetters/base.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ local _margins = pl.class({
3131
-- @param frame A initial frame to attach the typesetter to.
3232
function 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)

0 commit comments

Comments
 (0)