Skip to content

Commit

Permalink
Copy table to avoid overwriting previous style number
Browse files Browse the repository at this point in the history
  • Loading branch information
rgieseke committed Jun 27, 2014
1 parent 92f4cd1 commit 5a2162e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/style.lua
Expand Up @@ -219,6 +219,7 @@ end
-- @param name The style name that should be used for the style
-- @param properties The table describing the style
local function define_style(t, name, properties)
local properties = table_copy(properties)
local count = 0
for k, v in pairs(M) do
if type(v) == 'table' then count = count + 1 end
Expand Down

0 comments on commit 5a2162e

Please sign in to comment.