File tree 3 files changed +15
-12
lines changed
3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -793,17 +793,6 @@ void PMbrowserWindow::on_actionExport_All_as_IBW_triggered()
793
793
}
794
794
}
795
795
796
- class locale_manager {
797
- std::locale old_locale{};
798
- public:
799
- void setLocale (const char * name){
800
- old_locale = std::locale::global (std::locale (name));
801
- }
802
- ~locale_manager () {
803
- std::locale::global (old_locale);
804
- }
805
- };
806
-
807
796
void PMbrowserWindow::on_actionExport_Metadata_as_Table_triggered ()
808
797
{
809
798
if (!assertDatFileOpen ()) {
@@ -812,7 +801,7 @@ void PMbrowserWindow::on_actionExport_Metadata_as_Table_triggered()
812
801
DlgExportMetadata dlg (this );
813
802
if (dlg.exec ()) {
814
803
try {
815
- locale_manager lm;
804
+ hkLib:: locale_manager lm;
816
805
if (dlg.useSystemLocale ()) {
817
806
lm.setLocale (" " ); // set default locale
818
807
}
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ namespace hkLib {
64
64
65
65
std::string MakeWaveNote (hkTreeNode& TrRecord)
66
66
{
67
+ locale_manager lm;
68
+ lm.setLocale (" C" ); // always use C locale for Igor wavenotes
67
69
std::stringstream note;
68
70
formatParamListExportIBW (*TrRecord.getParent ()->getParent ()->getParent ()->getParent (), parametersRoot, note);
69
71
formatParamListExportIBW (*TrRecord.getParent ()->getParent ()->getParent (), parametersGroup, note);
Original file line number Diff line number Diff line change @@ -68,5 +68,17 @@ namespace hkLib {
68
68
// / <param name="count">count of trace (starting from 1)</param>
69
69
// / <returns>string containing canonical trace-name</returns>
70
70
std::string formTraceName (const hkTreeNode& tr, int count);
71
+
72
+
73
+ class locale_manager {
74
+ std::locale old_locale{};
75
+ public:
76
+ void setLocale (const char * name) {
77
+ old_locale = std::locale::global (std::locale (name));
78
+ }
79
+ ~locale_manager () {
80
+ std::locale::global (old_locale);
81
+ }
82
+ };
71
83
}
72
84
#endif // !HELPERS_H
You can’t perform that action at this time.
0 commit comments