Fix error in PrintRegion::flow() port

This commit is contained in:
Alessandro Ranellucci 2014-08-03 20:02:58 +02:00
parent 6adc3477c9
commit f06566dd3a
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@ class ConfigOptionFloat : public ConfigOption
double value; // use double instead of float for preserving compatibility with values coming from Perl
ConfigOptionFloat() : value(0) {};
operator float() const { return this->value; };
operator double() const { return this->value; };
std::string serialize() const {

View file

@ -60,7 +60,7 @@ PrintRegion::flow(FlowRole role, double layer_height, bool bridge, bool first_la
}
double nozzle_diameter = this->_print->config.nozzle_diameter.get_at(extruder-1);
return Flow::new_from_config_width(role, config_width, nozzle_diameter, layer_height, bridge ? this->config.bridge_flow_ratio : 0);
return Flow::new_from_config_width(role, config_width, nozzle_diameter, layer_height, bridge ? (float)this->config.bridge_flow_ratio : 0.0);
}
#ifdef SLIC3RXS