diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-03-02 23:11:38 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-03-02 23:11:38 +0000 |
| commit | ef1da924221c3ab94e0c7bedf580f4a930459aa4 (patch) | |
| tree | 7dc285bb16481af9573d4013f7cfb4eb716796e1 /src/2geom | |
| parent | update to trunk (diff) | |
| download | inkscape-ef1da924221c3ab94e0c7bedf580f4a930459aa4.tar.gz inkscape-ef1da924221c3ab94e0c7bedf580f4a930459aa4.zip | |
added more fillet/chamfer properties
(bzr r13645.1.28)
Diffstat (limited to 'src/2geom')
| -rw-r--r-- | src/2geom/satellite.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/2geom/satellite.h b/src/2geom/satellite.h index 7581e6e34..aa949a97c 100644 --- a/src/2geom/satellite.h +++ b/src/2geom/satellite.h @@ -56,8 +56,8 @@ class Satellite void setSatelliteType(gchar const * A) { - std::map<gchar const *,SatelliteType> GcharMapToSatelliteType = boost::assign::map_list_of("F", F)("IF", IF)("C",C)("IC",IC)("KO",KO); - _satellitetype = GcharMapToSatelliteType[A]; + std::map<std::string,SatelliteType> GcharMapToSatelliteType = boost::assign::map_list_of("F", F)("IF", IF)("C",C)("IC",IC)("KO",KO); + _satellitetype = GcharMapToSatelliteType.find(std::string(A))->second; } void setIsTime(bool A) @@ -107,7 +107,7 @@ class Satellite gchar const * getSatelliteTypeGchar() const { std::map<SatelliteType,gchar const *> SatelliteTypeToGcharMap = boost::assign::map_list_of(F, "F")(IF, "IF")(C,"C")(IC,"IC")(KO,"KO"); - return SatelliteTypeToGcharMap[_satellitetype]; + return SatelliteTypeToGcharMap.at(_satellitetype); } bool getIsTime() const |
