ADG Lua 

ADG Lua Commit Details

Date:2013-04-01 21:46:19 (6 years 3 months ago)
Author:Nicola Fontana
Branch:master
Commit:953659302b27581dd5cf6e34b0c931edb0e04a24
Parents: 57ce499055f02fcdf133fbb19c66e0ad7d178424
Message:piston: the view size is subject to global map

Changes:
Mpiston.lua (1 diff)

File differences

piston.lua
299299
300300
301301
302
303
304
302
303
305304
306305
307306
-- The not explicitely set, the export format is guessed from the file suffix
if not format then format = file:match('%.([^.]+)$') end
local size = canvas:get_size()
size.x = size.x + canvas:get_left_margin() + canvas:get_right_margin()
size.y = size.y + canvas:get_top_margin() + canvas:get_bottom_margin()
local size = canvas:get_size():dup()
size:transform(canvas:get_global_map())
-- Create the cairo surface
local surface

Archive Download the corresponding diff file

Branches

Tags