[gnome-calculator] Math buttons: fix a (potential) crash loading financial dialogs
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Math buttons: fix a (potential) crash loading financial dialogs
- Date: Mon, 19 Sep 2016 19:28:40 +0000 (UTC)
commit 33e74c4cc27b6ed3f53bca2b48980a4a6964f716
Author: Tobias Mueller <muelli cryptobitch de>
Date: Mon Sep 19 20:20:48 2016 +0100
Math buttons: fix a (potential) crash loading financial dialogs
src/math-buttons.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/math-buttons.vala b/src/math-buttons.vala
index 5c9ec11..ff03591 100644
--- a/src/math-buttons.vala
+++ b/src/math-buttons.vala
@@ -129,7 +129,7 @@ public class MathButtons : Gtk.Box
for (var i = 0; i < entry_names.length; i++)
{
var entry = financial_ui.get_object (entry_names[i]) as Gtk.Entry;
- if (i != ctrm_entries.length - 1)
+ if (i != entry_names.length - 1)
entry.set_data<Gtk.Entry> ("next-entry", financial_ui.get_object (entry_names[i+1]) as
Gtk.Entry);
entry.activate.connect (finc_activate_cb);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]