diff options
| author | Zog | 2018-02-20 10:12:17 +0100 |
|---|---|---|
| committer | Zog | 2018-02-20 10:12:17 +0100 |
| commit | f77c01daa40cb389a8eacc8403bd3adb035e2930 (patch) | |
| tree | b3c9bff30bf218caeb50919bfe6162d84dcdd908 /app | |
| parent | 1a96585a165776174b4763bf8455d5dbe999e7ba (diff) | |
| download | chouette-core-f77c01daa40cb389a8eacc8403bd3adb035e2930.tar.bz2 | |
Fix specs
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/simple_importer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/simple_importer.rb b/app/models/simple_importer.rb index 36b31a997..b824d596d 100644 --- a/app/models/simple_importer.rb +++ b/app/models/simple_importer.rb @@ -256,7 +256,7 @@ class SimpleImporter < ActiveRecord::Base msg = "#{"%#{@padding}d" % (@current_line + 1)}/#{@number_of_lines}: #{full_status}" - lines_count = (@status_height / 2) - 3 + lines_count = [(@status_height / 2) - 3, 1].max if @messages.any? msg += "\n\n" |
