diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-08-01 17:15:46 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-08-01 17:15:46 +0000 |
| commit | 390ac12b6a0e6bbc89e34125692d60c44546e94a (patch) | |
| tree | 544b4e9d71aeaeabada742a6127e3cdf1165ed00 /src | |
| parent | Attem to fix the locale error (diff) | |
| download | inkscape-390ac12b6a0e6bbc89e34125692d60c44546e94a.tar.gz inkscape-390ac12b6a0e6bbc89e34125692d60c44546e94a.zip | |
Fix set locale to some compilers folowing su_v help
(bzr r15017.1.30)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-measure-line.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/live_effects/lpe-measure-line.cpp b/src/live_effects/lpe-measure-line.cpp index fb4530abd..e9e2183e7 100644 --- a/src/live_effects/lpe-measure-line.cpp +++ b/src/live_effects/lpe-measure-line.cpp @@ -29,7 +29,6 @@ #include "sp-path.h" #include "desktop.h" #include "document.h" -#include <locale> #include <iomanip> // TODO due to internal breakage in glibmm headers, this must be last: @@ -578,9 +577,9 @@ LPEMeasureLine::doBeforeEffect (SPLPEItem const* lpeitem) } SPCSSAttr *css = sp_repr_css_attr_new(); sp_repr_css_attr_add_from_string(css, dimline_format.param_getSVGValue()); - std::setlocale(LC_NUMERIC, std::locale::classic().name().c_str()); + setlocale(LC_NUMERIC, std::locale::classic().name().c_str()); double width_line = atof(sp_repr_css_property(css,"stroke-width","-1")); - std::setlocale(LC_NUMERIC, std::locale("").name().c_str()); + setlocale(LC_NUMERIC, std::locale("").name().c_str()); if (width_line > -0.0001) { arrow_gap = 8 * Inkscape::Util::Quantity::convert(width_line/ doc_scale, "mm", display_unit.c_str()); } |
