equal
deleted
inserted
replaced
749 point_num++; |
749 point_num++; |
750 } |
750 } |
751 } |
751 } |
752 mapvalue_ch[i]=mapvalue_str[i]; |
752 mapvalue_ch[i]=mapvalue_str[i]; |
753 } |
753 } |
754 |
754 |
755 double mapvalue_d=atof(mapvalue_ch); |
|
756 |
|
757 //if the text in the entry was correct |
755 //if the text in the entry was correct |
758 if((point_num<=1)&&(valid_double)) |
756 if((point_num<=1)&&(valid_double)) |
759 { |
757 { |
|
758 double mapvalue_d=atof(mapvalue_ch); |
|
759 |
|
760 //reconvert the double to string for the correct format |
|
761 std::ostringstream ostr; |
|
762 ostr << mapvalue_d; |
|
763 |
760 //save the value to the correct place |
764 //save the value to the correct place |
761 switch(actual_tool) |
765 switch(actual_tool) |
762 { |
766 { |
763 case EDGE_MAP_EDIT: |
767 case EDGE_MAP_EDIT: |
764 edgetextmap[active_edge]->property_text().set_value(mapvalue_str); |
768 edgetextmap[active_edge]->property_text().set_value(ostr.str()); |
765 (*(mapstorage.edgemap_storage)[edgemap_to_edit])[active_edge]=mapvalue_d; |
769 (*(mapstorage.edgemap_storage)[edgemap_to_edit])[active_edge]=mapvalue_d; |
766 break; |
770 break; |
767 case NODE_MAP_EDIT: |
771 case NODE_MAP_EDIT: |
768 nodetextmap[active_node]->property_text().set_value(mapvalue_str); |
772 nodetextmap[active_node]->property_text().set_value(ostr.str()); |
769 (*(mapstorage.nodemap_storage)[nodemap_to_edit])[active_node]=mapvalue_d; |
773 (*(mapstorage.nodemap_storage)[nodemap_to_edit])[active_node]=mapvalue_d; |
770 break; |
774 break; |
771 default: |
775 default: |
772 break; |
776 break; |
773 } |
777 } |