[gnome-calculator] Don't copy thousand separators to clipboard.
- From: Arth Patel <arthpatel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Don't copy thousand separators to clipboard.
- Date: Sun, 28 Dec 2014 08:54:33 +0000 (UTC)
commit d8decf1bacd52fa0820d3c7e79a4fdffbe96ca48
Author: PioneerAxon <arth svnit gmail com>
Date: Sun Dec 28 14:23:28 2014 +0530
Don't copy thousand separators to clipboard.
src/math-equation.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/math-equation.vala b/src/math-equation.vala
index e4488b7..f982865 100644
--- a/src/math-equation.vala
+++ b/src/math-equation.vala
@@ -477,6 +477,10 @@ public class MathEquation : Gtk.SourceBuffer
get_bounds (out start, out end);
var text = get_text (start, end, false);
+ var tsep_string = Posix.nl_langinfo (Posix.NLItem.THOUSEP);
+ if (tsep_string == null || tsep_string == "")
+ tsep_string = " ";
+ text = text.replace (tsep_string, "");
Gtk.Clipboard.get (Gdk.Atom.NONE).set_text (text, -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]