From 1875825f45b088bd5379aa5567cf6acffd0312a3 Mon Sep 17 00:00:00 2001
From: Alessandro Ranellucci <aar@cpan.org>
Date: Sun, 31 May 2015 22:09:58 +0200
Subject: [PATCH] Minor fix to previous commit

---
 lib/Slic3r/Print/GCode.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Slic3r/Print/GCode.pm b/lib/Slic3r/Print/GCode.pm
index ea7dafcc1..ce60996c4 100644
--- a/lib/Slic3r/Print/GCode.pm
+++ b/lib/Slic3r/Print/GCode.pm
@@ -75,7 +75,7 @@ sub BUILD {
                     }
                 }
             }
-            my $min_mm3_per_mm = min(@mm3_per_mm);
+            my $min_mm3_per_mm = min(@mm3_per_mm) // 0;
             if ($min_mm3_per_mm > 0) {
                 # In order to honor max_print_speed we need to find a target volumetric
                 # speed that we can use throughout the print. So we define this target