add DEBUGBT function to traceback certain location

pull/303/head
chrox 11 years ago
parent f32e9e4548
commit 1ee6d5a9c5

@ -36,3 +36,6 @@ function LvDEBUG(lv, ...)
print("#"..line)
end
function DEBUGBT()
DEBUG(debug.traceback())
end

@ -113,8 +113,9 @@ function KoptInterface:getAutoBBox(doc, pageno)
if not cached then
local page = doc._document:openPage(pageno)
local kc = self:createContext(doc, pageno, bbox)
--DEBUGBT()
bbox.x0, bbox.y0, bbox.x1, bbox.y1 = page:getAutoBBox(kc)
DEBUG("Auto detected bbox", bbox)
--DEBUG("Auto detected bbox", bbox)
Cache:insert(hash, CacheItem:new{ autobbox = bbox })
page:close()
kc:free()

Loading…
Cancel
Save