Ticket #31028: patch-ipe-lua-main.lua.diff
File patch-ipe-lua-main.lua.diff, 855 bytes (added by m.thon@…, 13 years ago) |
---|
-
ipe/lua/main.lua
old new 147 147 -- This function is called to launch a file 148 148 149 149 function file_open_event(fname) 150 if first_model and first_model.pristinethen151 first_model .loadDocument(fname)150 if first_model and not first_model.file_name and not first_model:isModified() then 151 first_model:loadDocument(fname) 152 152 else 153 153 MODEL:new(fname) 154 154 end … … 249 249 end 250 250 251 251 config.ipeletDirs = {} 252 for w in string.gmatch(config.ipelets, "[^; ]+") do252 for w in string.gmatch(config.ipelets, "[^;:]+") do 253 253 config.ipeletDirs[#config.ipeletDirs + 1] = w 254 254 end 255 255 256 if config.platform == "unix" then256 if config.platform == "unix" or config.platform == "apple" then 257 257 table.insert(config.ipeletDirs, 1, config.home .. "/.ipe/ipelets") 258 258 end 259 259