nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Various fixes and improvements from We Broke The World
[nit.git]
/
contrib
/
inkscape_tools
/
src
/
svg_to_png_and_nit.nit
diff --git
a/contrib/inkscape_tools/src/svg_to_png_and_nit.nit
b/contrib/inkscape_tools/src/svg_to_png_and_nit.nit
index
1a2d7b3
..
2a94089
100644
(file)
--- a/
contrib/inkscape_tools/src/svg_to_png_and_nit.nit
+++ b/
contrib/inkscape_tools/src/svg_to_png_and_nit.nit
@@
-183,8
+183,8
@@
for drawing in drawings do
var x = words[1].to_f.floor.to_i
var y = words[2].to_f.floor.to_i
var x = words[1].to_f.floor.to_i
var y = words[2].to_f.floor.to_i
- var w = words[3].to_f.ceil.to_i
- var h = words[4].to_f.ceil.to_i
+ var w = words[3].to_f.ceil.to_i+1
+ var h = words[4].to_f.ceil.to_i+1
if id.has_prefix("0") then
var nit_name = id.substring_from(1)
if id.has_prefix("0") then
var nit_name = id.substring_from(1)