summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-08 19:46:40 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-08 19:46:40 +0000
commitd082c2f208fab807b2c8584562a7b4079c48a948 (patch)
treedcb7fdf25ef8257be3fbabb7f442af891aa1f200 /gtk2_ardour/utils.cc
parent7fdc582f19e00f24791689b0762c11a3c5ddf8ff (diff)
accept decimal point as well
git-svn-id: svn://localhost/ardour2/branches/3.0@13621 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 891ea86c2c..8650e0da78 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -598,7 +598,6 @@ key_is_legal_for_numeric_entry (guint keyval)
case GDK_comma:
if (comma_decimal < 0) {
std::lconv* lc = std::localeconv();
- cerr << "***** Locale decimal point = [" << lc->decimal_point << "]\n";
if (strchr (lc->decimal_point, ',') != 0) {
comma_decimal = 1;
} else {
@@ -611,6 +610,9 @@ key_is_legal_for_numeric_entry (guint keyval)
}
switch (keyval) {
+ case GDK_decimalpoint:
+ return true;
+
case GDK_period:
if (comma_decimal) {
return false;