diff --git a/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb b/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb index de720221..dd7a6455 100644 --- a/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +++ b/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb @@ -17,7 +17,7 @@ module Compass if image.repeat == "no-repeat" output_png.replace! input_png, image.left, image.top else - x = image.left - (image.left / image.width).floor * image.width + x = image.left - (image.left / image.width).ceil * image.width while x < width do begin output_png.replace! input_png, x, image.top